Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001545, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 213.9 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2343/0.2343, allocations: 46.95 MB / 360.8 MB, free: 3.945 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002376/0.002376, allocations: 75.88 kB / 0.4962 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3694, allocations: 66.08 MB / 0.5607 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009856/0.3793, allocations: 6.809 MB / 0.5673 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005883/0.3851, allocations: 2.295 MB / 0.5696 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008199/0.386, allocations: 31.94 kB / 0.5696 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004622/0.3906, allocations: 1.685 MB / 0.5713 GB, free: 9.191 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002548/0.3931, allocations: 0.7062 MB / 0.5719 GB, free: 8.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002857/0.396, allocations: 1.038 MB / 0.573 GB, free: 7.457 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002479/0.3985, allocations: 1.421 MB / 0.5743 GB, free: 6.023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001949/0.4004, allocations: 0.9105 MB / 0.5752 GB, free: 5.09 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.4017, allocations: 0.619 MB / 0.5758 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001469/0.4032, allocations: 0.6456 MB / 0.5765 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004388/0.4036, allocations: 112 kB / 0.5766 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.405, allocations: 323.8 kB / 0.5769 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005/0.4055, allocations: 302.8 kB / 0.5772 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009562/0.4065, allocations: 0.5288 MB / 0.5777 GB, free: 2.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002878/0.4094, allocations: 1.786 MB / 0.5794 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4094, allocations: 4 kB / 0.5794 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4094, allocations: 0 / 0.5794 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.003e-05/0.4094, allocations: 0 / 0.5794 GB, free: 0.7695 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.00873/0.4182, allocations: 2.342 MB / 0.5817 GB, free: 14.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.4182, allocations: 8.031 kB / 0.5817 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003794/0.4186, allocations: 198.7 kB / 0.5819 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.4287, allocations: 1.327 MB / 0.5832 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.4301, allocations: 0.5528 MB / 0.5838 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.4302, allocations: 103 kB / 0.5839 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000331/0.4305, allocations: 136.1 kB / 0.584 GB, free: 12.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/0.4339, allocations: 1.591 MB / 0.5855 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.805e-05/0.4339, allocations: 7.953 kB / 0.5855 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.4341, allocations: 52 kB / 0.5856 GB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.4341, allocations: 39.98 kB / 0.5856 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.4371, allocations: 1.501 MB / 0.5871 GB, free: 8.766 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009234/0.4464, allocations: 4.438 MB / 0.5914 GB, free: 4.184 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.4485, allocations: 1.084 MB / 0.5925 GB, free: 3.102 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.4495, allocations: 0.546 MB / 0.593 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.4497, allocations: 32.97 kB / 0.5931 GB, free: 2.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.4497, allocations: 55.55 kB / 0.5931 GB, free: 2.453 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.897e-06/0.4497, allocations: 0 / 0.5931 GB, free: 2.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.009535/0.4593, allocations: 3.002 MB / 0.596 GB, free: 15.44 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/0.4593, allocations: 90.11 kB / 0.5961 GB, free: 15.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007793/0.4601, allocations: 477.8 kB / 0.5966 GB, free: 14.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.958e-05/0.4602, allocations: 53.64 kB / 0.5966 GB, free: 14.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.4606, allocations: 480.8 kB / 0.5971 GB, free: 14.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.461, allocations: 444 kB / 0.5975 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003657/0.4613, allocations: 218.8 kB / 0.5977 GB, free: 13.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4615, allocations: 382.8 kB / 0.5981 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009623/0.4625, allocations: 458.4 kB / 0.5985 GB, free: 12.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.4636, allocations: 0.6958 MB / 0.5992 GB, free: 12.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/0.4657, allocations: 1.202 MB / 0.6004 GB, free: 10.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.4657, allocations: 4 kB / 0.6004 GB, free: 10.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.003244/0.469, allocations: 1.578 MB / 0.6019 GB, free: 9.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.469, allocations: 11.98 kB / 0.6019 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.469, allocations: 8 kB / 0.6019 GB, free: 9.141 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.4707, allocations: 0.524 MB / 0.6025 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007959/0.4715, allocations: 195.7 kB / 0.6026 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002082/0.4717, allocations: 61.14 kB / 0.6027 GB, free: 8.359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007107/0.4725, allocations: 115.1 kB / 0.6028 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4726, allocations: 55.98 kB / 0.6029 GB, free: 8.191 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0005574/0.4731, allocations: 265.6 kB / 0.6031 GB, free: 7.922 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.4733, allocations: 87.44 kB / 0.6032 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.4764, allocations: 1.544 MB / 0.6047 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.4764, allocations: 15.94 kB / 0.6047 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4764, allocations: 0 / 0.6047 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.4764, allocations: 15.95 kB / 0.6047 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004994/0.4814, allocations: 2.64 MB / 0.6073 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.4814, allocations: 0 / 0.6073 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006309/0.4821, allocations: 143.8 kB / 0.6075 GB, free: 3.406 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.4835, allocations: 0.5184 MB / 0.608 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.4837, allocations: 31.98 kB / 0.608 GB, free: 2.855 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003039/0.484, allocations: 64.73 kB / 0.6081 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.484, allocations: 4 kB / 0.6081 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004148/0.4881, allocations: 2.321 MB / 0.6103 GB, free: 452 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005001/0.4886, allocations: 203.1 kB / 0.6105 GB, free: 248 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.4887, allocations: 27.94 kB / 0.6105 GB, free: 220 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000566/0.4893, allocations: 43.97 kB / 0.6106 GB, free: 176 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.4895, allocations: 81.16 kB / 0.6107 GB, free: 96 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/0.4896, allocations: 32.06 kB / 0.6107 GB, free: 64 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004197/0.49, allocations: 314.9 kB / 0.611 GB, free: 15.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.49, allocations: 0 / 0.611 GB, free: 15.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001114/0.4911, allocations: 351.2 kB / 0.6113 GB, free: 15.41 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00475/0.4959, allocations: 2.931 MB / 0.6142 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.499, allocations: 1.273 MB / 0.6154 GB, free: 11.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.499, allocations: 4 kB / 0.6154 GB, free: 11.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.5007, allocations: 0.6918 MB / 0.6161 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008384/0.5015, allocations: 93.94 kB / 0.6162 GB, free: 10.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/0.5151, allocations: 8.38 MB / 0.6244 GB, free: 1.715 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006121/0.5157, allocations: 458.5 kB / 0.6248 GB, free: 1.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004678/0.5161, allocations: 110.7 kB / 0.6249 GB, free: 1.117 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005341/0.5167, allocations: 399.3 kB / 0.6253 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5167, allocations: 0 / 0.6253 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06267/0.5793, allocations: 21.51 MB / 0.6463 GB, free: 11.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.5, allocations: 3.859 kB / 0.6463 GB, free: 11.4 MB / 494.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --stepSize=0.00019976 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.80387011077255]