Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009904/0.0009904, allocations: 153 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8659/0.8659, allocations: 173.4 MB / 200.5 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/2.029e-05, allocations: 2.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01204/0.01206, allocations: 10.38 MB / 328.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004855/0.01692, allocations: 3.564 MB / 332.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007323/0.01765, allocations: 95.31 kB / 332.5 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.01891, allocations: 0.8694 MB / 333.4 MB, free: 7.363 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.02053, allocations: 1.184 MB / 334.5 MB, free: 6.172 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006051/0.02114, allocations: 495.2 kB / 335 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002753/0.02389, allocations: 4.364 MB / 339.4 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001699/0.02559, allocations: 1.782 MB / 341.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.02802, allocations: 2.823 MB / 344 MB, free: 12.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.02994, allocations: 2.093 MB / 346.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005493/0.03049, allocations: 0.4961 MB / 346.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000607/0.03109, allocations: 0.5779 MB / 347.2 MB, free: 9.445 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008207/0.03192, allocations: 1.449 MB / 348.6 MB, free: 7.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.03342, allocations: 1.524 MB / 350.1 MB, free: 6.465 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004158/0.03757, allocations: 6.661 MB / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.03758, allocations: 0 / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.03758, allocations: 0 / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001284/0.03771, allocations: 0 / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.005861/0.04357, allocations: 4.293 MB / 361.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.04361, allocations: 8.922 kB / 361.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004403/0.04405, allocations: 438.6 kB / 361.5 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/0.04473, allocations: 458.3 kB / 362 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/0.04741, allocations: 2.339 MB / 364.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.04753, allocations: 226.5 kB / 364.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002973/0.04782, allocations: 319.9 kB / 364.8 MB, free: 7.629 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004564/0.05239, allocations: 4.603 MB / 369.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.203e-05/0.05244, allocations: 11.94 kB / 369.5 MB, free: 2.871 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.05264, allocations: 124 kB / 369.6 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.589e-05/0.05273, allocations: 133.9 kB / 369.7 MB, free: 2.617 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004134/0.05686, allocations: 3.767 MB / 373.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.0698, allocations: 12.19 MB / 385.7 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.07178, allocations: 2.093 MB / 387.8 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.0734, allocations: 1.559 MB / 389.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.07356, allocations: 45.28 kB / 389.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.0736, allocations: 55.86 kB / 389.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=164): time 2.725e-06/0.0736, allocations: 0 / 389.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=180): time 0.01074/0.08434, allocations: 8.498 MB / 397.9 MB, free: 5.977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.08438, allocations: 73.41 kB / 398 MB, free: 5.895 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002223/0.08661, allocations: 2.373 MB / 400.4 MB, free: 3.492 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.59e-05/0.08669, allocations: 65.64 kB / 400.4 MB, free: 3.422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007903/0.08748, allocations: 1.501 MB / 401.9 MB, free: 1.906 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/0.08784, allocations: 0.6158 MB / 402.5 MB, free: 1.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004095/0.08825, allocations: 367.4 kB / 402.9 MB, free: 0.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.08834, allocations: 305.1 kB / 403.2 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.08977, allocations: 1.128 MB / 404.3 MB, free: 15.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.09108, allocations: 1.574 MB / 405.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002431/0.09351, allocations: 2.784 MB / 408.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.09352, allocations: 4 kB / 408.7 MB, free: 10.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.004046/0.09756, allocations: 3.59 MB / 412.3 MB, free: 7.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.09759, allocations: 12 kB / 412.3 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.09761, allocations: 12 kB / 412.3 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.09877, allocations: 0.8015 MB / 413.1 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000923/0.09969, allocations: 467.2 kB / 413.6 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006883/0.1066, allocations: 10.57 MB / 424.1 MB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.1077, allocations: 127.8 kB / 424.2 MB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.1078, allocations: 76.12 kB / 424.3 MB, free: 10.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001406/0.1092, allocations: 1.09 MB / 425.4 MB, free: 9.418 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005242/0.1097, allocations: 254.4 kB / 425.7 MB, free: 9.168 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003522/0.1133, allocations: 3.289 MB / 428.9 MB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.1133, allocations: 20 kB / 429 MB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1133, allocations: 4 kB / 429 MB, free: 5.812 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.1133, allocations: 15.95 kB / 429 MB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007421/0.1207, allocations: 6.426 MB / 435.4 MB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.1207, allocations: 8.219 kB / 435.4 MB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006693/0.1214, allocations: 295.5 kB / 435.7 MB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001312/0.1227, allocations: 0.9159 MB / 436.6 MB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.37e-05/0.1228, allocations: 43.92 kB / 436.7 MB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1545/0.2773, allocations: 13.79 MB / 450.5 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.2773, allocations: 5.438 kB / 450.5 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005592/0.2829, allocations: 4.848 MB / 455.3 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007742/0.2836, allocations: 0.5109 MB / 455.8 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.2838, allocations: 36.88 kB / 455.9 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006676/0.2845, allocations: 124.4 kB / 456 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002531/0.2847, allocations: 166.1 kB / 456.1 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.276e-05/0.2848, allocations: 45.47 kB / 456.2 MB, free: 115.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001394/0.2862, allocations: 1.625 MB / 457.8 MB, free: 115 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2862, allocations: 0.75 kB / 457.8 MB, free: 115 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001283/0.2875, allocations: 0.711 MB / 458.5 MB, free: 114.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004182/0.2917, allocations: 5.502 MB / 464 MB, free: 111.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003147/0.2948, allocations: 3.329 MB / 467.4 MB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.2948, allocations: 7.969 kB / 467.4 MB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.2969, allocations: 2.352 MB / 469.7 MB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.2996, allocations: 0.718 MB / 470.4 MB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0333/0.3329, allocations: 26.32 MB / 496.8 MB, free: 79.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.334, allocations: 1.971 MB / 498.7 MB, free: 77.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001183/0.3352, allocations: 0.5905 MB / 499.3 MB, free: 76.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008802/0.3361, allocations: 1.258 MB / 0.4888 GB, free: 75.41 MB / 410.7 MB Notification: Performance of SimCode: time 1.813e-06/0.3361, allocations: 0 / 0.4888 GB, free: 75.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0811/0.4172, allocations: 70.97 MB / 0.5582 GB, free: 5.102 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.23/9.647, allocations: 0 / 0.5582 GB, free: 5.102 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 13.372921524569392]