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.0009797/0.0009797, allocations: 204.5 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 226.6 MB / 243.1 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007084/0.0007084, allocations: 94.7 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1907/0.1907, allocations: 44.84 MB / 392 MB, free: 9.328 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002553/0.0002554, allocations: 4 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09547, allocations: 62.96 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.1884/0.2839, allocations: 6.657 MB / 0.5218 GB, free: 9.16 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.2871, allocations: 2.223 MB / 0.524 GB, free: 7.605 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003805/0.2875, allocations: 29.31 kB / 0.524 GB, free: 7.602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005521/0.2881, allocations: 264.7 kB / 0.5243 GB, free: 7.48 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001203/0.2893, allocations: 0.5984 MB / 0.5249 GB, free: 7.098 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001604/0.2909, allocations: 0.8863 MB / 0.5257 GB, free: 6.551 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.2924, allocations: 1.273 MB / 0.527 GB, free: 5.895 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002489/0.2949, allocations: 1.522 MB / 0.5285 GB, free: 4.984 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007835/0.2957, allocations: 0.5023 MB / 0.529 GB, free: 4.773 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006783/0.2964, allocations: 0.6276 MB / 0.5296 GB, free: 4.488 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.2965, allocations: 56.72 kB / 0.5296 GB, free: 4.488 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008371/0.2974, allocations: 268.1 kB / 0.5299 GB, free: 4.418 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.2975, allocations: 222.3 kB / 0.5301 GB, free: 4.285 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002282/0.2978, allocations: 238.2 kB / 0.5303 GB, free: 4.141 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.2995, allocations: 1.308 MB / 0.5316 GB, free: 3.773 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.2995, allocations: 0 / 0.5316 GB, free: 3.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2995, allocations: 4 kB / 0.5316 GB, free: 3.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.2996, allocations: 4.906 kB / 0.5316 GB, free: 3.766 MB / 346.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.007061/0.3066, allocations: 2.143 MB / 0.5337 GB, free: 2.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.3067, allocations: 9.719 kB / 0.5337 GB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009561/0.3163, allocations: 1.402 MB / 0.5351 GB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.3174, allocations: 0.5987 MB / 0.5357 GB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.5e-05/0.3175, allocations: 96.45 kB / 0.5357 GB, free: 2.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.3177, allocations: 134.7 kB / 0.5359 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002667/0.3203, allocations: 1.479 MB / 0.5373 GB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.3204, allocations: 5.344 kB / 0.5373 GB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.3205, allocations: 55.44 kB / 0.5374 GB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.896e-05/0.3206, allocations: 38.66 kB / 0.5374 GB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.323, allocations: 1.52 MB / 0.5389 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007614/0.3307, allocations: 5.652 MB / 0.5444 GB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.3331, allocations: 2.18 MB / 0.5465 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.3341, allocations: 0.6539 MB / 0.5472 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001832/0.3343, allocations: 191.2 kB / 0.5474 GB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/0.3344, allocations: 49.59 kB / 0.5474 GB, free: 9.758 MB / 362.7 MB Notification: Performance of pre-optimization done (n=127): time 2.976e-06/0.3344, allocations: 4 kB / 0.5474 GB, free: 9.754 MB / 362.7 MB Notification: Performance of matching and sorting (n=127): time 0.008489/0.3429, allocations: 3.067 MB / 0.5504 GB, free: 8.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.3429, allocations: 93.06 kB / 0.5505 GB, free: 7.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005207/0.3435, allocations: 456.5 kB / 0.5509 GB, free: 7.691 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.913e-05/0.3436, allocations: 47.2 kB / 0.551 GB, free: 7.645 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.3438, allocations: 463.6 kB / 0.5514 GB, free: 7.234 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003007/0.3441, allocations: 423.3 kB / 0.5518 GB, free: 6.863 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.169e-05/0.3442, allocations: 29.5 kB / 0.5519 GB, free: 6.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3444, allocations: 383.2 kB / 0.5522 GB, free: 6.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008019/0.3452, allocations: 457.9 kB / 0.5527 GB, free: 6.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009861/0.3462, allocations: 0.7065 MB / 0.5533 GB, free: 5.711 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009203/0.3471, allocations: 0.519 MB / 0.5539 GB, free: 5.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.984e-06/0.3471, allocations: 4 kB / 0.5539 GB, free: 5.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002669/0.3498, allocations: 1.578 MB / 0.5554 GB, free: 3.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3498, allocations: 12.06 kB / 0.5554 GB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.3499, allocations: 7.953 kB / 0.5554 GB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.3513, allocations: 0.5318 MB / 0.5559 GB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007447/0.3521, allocations: 195.7 kB / 0.5561 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006935/0.359, allocations: 4.699 MB / 0.5607 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000995/0.3601, allocations: 134.8 kB / 0.5608 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.866e-05/0.3602, allocations: 51.94 kB / 0.5609 GB, free: 13.97 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.000544/0.3607, allocations: 277.5 kB / 0.5612 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.3609, allocations: 79.06 kB / 0.5612 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.3637, allocations: 1.578 MB / 0.5628 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/0.3637, allocations: 16 kB / 0.5628 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3637, allocations: 0 / 0.5628 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.3637, allocations: 11.97 kB / 0.5628 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004575/0.3683, allocations: 2.878 MB / 0.5656 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3683, allocations: 32 / 0.5656 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006335/0.369, allocations: 147.8 kB / 0.5658 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001461/0.3705, allocations: 0.5187 MB / 0.5663 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.85e-05/0.3706, allocations: 31.94 kB / 0.5663 GB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007343/0.3779, allocations: 4.697 MB / 0.5709 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3779, allocations: 4 kB / 0.5709 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004227/0.3822, allocations: 2.343 MB / 0.5732 GB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005082/0.3827, allocations: 295.9 kB / 0.5735 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.3829, allocations: 20 kB / 0.5735 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007206/0.3836, allocations: 51.97 kB / 0.5735 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.3838, allocations: 101.2 kB / 0.5736 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.376e-05/0.3839, allocations: 36 kB / 0.5737 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003818/0.3843, allocations: 306.9 kB / 0.5739 GB, free: 340 kB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3843, allocations: 0 / 0.5739 GB, free: 340 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001346/0.3856, allocations: 419 kB / 0.5743 GB, free: 15.92 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.0003124/0.386, allocations: 158.3 kB / 0.5745 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.3896, allocations: 1.848 MB / 0.5763 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.3896, allocations: 0 / 0.5763 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.3918, allocations: 1.237 MB / 0.5775 GB, free: 12.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006894/0.3925, allocations: 107.2 kB / 0.5776 GB, free: 12.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004003/0.3965, allocations: 2.604 MB / 0.5802 GB, free: 9.887 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.3973, allocations: 1.076 MB / 0.5812 GB, free: 8.781 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.3975, allocations: 71.42 kB / 0.5813 GB, free: 8.711 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3975, allocations: 0 / 0.5813 GB, free: 8.711 MB / 394.7 MB Notification: Performance of Templates: time 0.02332/0.4209, allocations: 17.91 MB / 0.5988 GB, free: 6.781 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