Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.6 MB / 243.4 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007611/0.0007613, allocations: 97.14 kB / 295.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3526/0.3526, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003138/0.0003138, allocations: 4 kB / 465.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.331, allocations: 62.96 MB / 0.5159 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.005586/0.3366, allocations: 6.703 MB / 0.5224 GB, free: 32.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003558/0.3402, allocations: 2.221 MB / 0.5246 GB, free: 30.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006676/0.3409, allocations: 23.5 kB / 0.5246 GB, free: 30.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006354/0.3415, allocations: 263.8 kB / 0.5249 GB, free: 30.34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.343, allocations: 0.6048 MB / 0.5255 GB, free: 29.94 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.3447, allocations: 0.8931 MB / 0.5263 GB, free: 29.38 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.346, allocations: 1.279 MB / 0.5276 GB, free: 28.72 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002774/0.3488, allocations: 1.618 MB / 0.5292 GB, free: 27.72 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008745/0.3497, allocations: 0.4982 MB / 0.5296 GB, free: 27.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000558/0.3503, allocations: 0.6289 MB / 0.5303 GB, free: 27.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.3504, allocations: 55.84 kB / 0.5303 GB, free: 27.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000715/0.3511, allocations: 269.8 kB / 0.5306 GB, free: 27.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.3512, allocations: 220.5 kB / 0.5308 GB, free: 27.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004522/0.3517, allocations: 0.5915 MB / 0.5314 GB, free: 26.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.3528, allocations: 1.31 MB / 0.5326 GB, free: 26.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3528, allocations: 0 / 0.5326 GB, free: 26.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3528, allocations: 0 / 0.5326 GB, free: 26.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.3528, allocations: 0 / 0.5326 GB, free: 26.29 MB / 378.7 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.00605/0.3589, allocations: 2.145 MB / 0.5347 GB, free: 25.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3589, allocations: 11.97 kB / 0.5347 GB, free: 25.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008622/0.3675, allocations: 1.403 MB / 0.5361 GB, free: 25.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.3687, allocations: 0.6003 MB / 0.5367 GB, free: 24.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.054e-05/0.3688, allocations: 95.52 kB / 0.5368 GB, free: 24.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.369, allocations: 132.3 kB / 0.5369 GB, free: 24.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.3713, allocations: 1.491 MB / 0.5384 GB, free: 23.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.3713, allocations: 0 / 0.5384 GB, free: 23.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.3715, allocations: 52.47 kB / 0.5384 GB, free: 23.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.966e-05/0.3715, allocations: 35.09 kB / 0.5385 GB, free: 23.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00237/0.3739, allocations: 1.516 MB / 0.5399 GB, free: 23.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007824/0.3817, allocations: 5.663 MB / 0.5455 GB, free: 19.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.3839, allocations: 2.176 MB / 0.5476 GB, free: 17.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3849, allocations: 0.6533 MB / 0.5482 GB, free: 17.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.3851, allocations: 189.1 kB / 0.5484 GB, free: 17.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.3852, allocations: 45.91 kB / 0.5485 GB, free: 17.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 3.476e-06/0.3852, allocations: 0 / 0.5485 GB, free: 17.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.008968/0.3941, allocations: 3.14 MB / 0.5515 GB, free: 16.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.3942, allocations: 89.77 kB / 0.5516 GB, free: 16.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005828/0.3948, allocations: 459 kB / 0.552 GB, free: 15.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.16e-05/0.3949, allocations: 46.72 kB / 0.5521 GB, free: 15.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.3952, allocations: 463.1 kB / 0.5525 GB, free: 15.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000268/0.3954, allocations: 427.1 kB / 0.5529 GB, free: 15.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.3955, allocations: 27.72 kB / 0.553 GB, free: 15.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3956, allocations: 386.1 kB / 0.5533 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008284/0.3965, allocations: 461 kB / 0.5538 GB, free: 14.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009526/0.3974, allocations: 0.6986 MB / 0.5545 GB, free: 14.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001814/0.3993, allocations: 1.209 MB / 0.5556 GB, free: 13.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.3993, allocations: 3.156 kB / 0.5556 GB, free: 13.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.00296/0.4022, allocations: 1.581 MB / 0.5572 GB, free: 12.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.4023, allocations: 11.88 kB / 0.5572 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.4023, allocations: 11.45 kB / 0.5572 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/0.4039, allocations: 0.5249 MB / 0.5577 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008012/0.4047, allocations: 197.3 kB / 0.5579 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006707/0.4114, allocations: 4.71 MB / 0.5625 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009518/0.4124, allocations: 130.8 kB / 0.5626 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.133e-05/0.4125, allocations: 51.98 kB / 0.5627 GB, free: 8.336 MB / 378.7 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 (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 initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004588/0.413, allocations: 273.5 kB / 0.5629 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4131, allocations: 83 kB / 0.563 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.4155, allocations: 1.575 MB / 0.5646 GB, free: 6.387 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.4155, allocations: 15.94 kB / 0.5646 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.4155, allocations: 4 kB / 0.5646 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.4155, allocations: 7.969 kB / 0.5646 GB, free: 6.359 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/0.4194, allocations: 2.885 MB / 0.5674 GB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.4194, allocations: 0 / 0.5674 GB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006027/0.42, allocations: 147.8 kB / 0.5675 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/0.4213, allocations: 0.5188 MB / 0.568 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.006e-05/0.4214, allocations: 24 kB / 0.5681 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006806/0.4282, allocations: 4.697 MB / 0.5727 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4283, allocations: 0 / 0.5727 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00433/0.4326, allocations: 2.355 MB / 0.575 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005406/0.4332, allocations: 283.9 kB / 0.5752 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.4334, allocations: 24 kB / 0.5752 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006618/0.434, allocations: 51.97 kB / 0.5753 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/0.4343, allocations: 101.2 kB / 0.5754 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-05/0.4344, allocations: 39.98 kB / 0.5754 GB, free: 11 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000399/0.4348, allocations: 306.9 kB / 0.5757 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4349, allocations: 0 / 0.5757 GB, free: 10.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001482/0.4363, allocations: 415 kB / 0.5761 GB, free: 10.29 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003422/0.4367, allocations: 163.6 kB / 0.5763 GB, free: 10.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.4404, allocations: 1.836 MB / 0.5781 GB, free: 8.266 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4404, allocations: 0 / 0.5781 GB, free: 8.266 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/0.4427, allocations: 1.244 MB / 0.5793 GB, free: 6.996 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009074/0.4437, allocations: 99.11 kB / 0.5794 GB, free: 6.906 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004156/0.4478, allocations: 2.613 MB / 0.5819 GB, free: 4.258 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007804/0.4486, allocations: 1.076 MB / 0.583 GB, free: 3.156 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.4489, allocations: 67.42 kB / 0.583 GB, free: 3.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.453e-06/0.449, allocations: 7.938 kB / 0.5831 GB, free: 3.082 MB / 394.7 MB Notification: Performance of Templates: time 0.02481/0.4738, allocations: 17.87 MB / 0.6005 GB, free: 1.195 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches