Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 118.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 183 kB / 18.72 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2395/0.2395, allocations: 44.18 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 55.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5035/0.5049, allocations: 60.83 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009719/0.5147, allocations: 7.726 MB / 0.5264 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006719/0.5214, allocations: 2.359 MB / 0.5287 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001762/0.5232, allocations: 28.69 kB / 0.5288 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004645/0.5279, allocations: 1.816 MB / 0.5305 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003604/0.5315, allocations: 0.8731 MB / 0.5314 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.534, allocations: 0.8859 MB / 0.5323 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002544/0.5365, allocations: 1.408 MB / 0.5336 GB, free: 8.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.5382, allocations: 1.013 MB / 0.5346 GB, free: 8.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009572/0.5392, allocations: 0.5983 MB / 0.5352 GB, free: 7.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007684/0.54, allocations: 0.7251 MB / 0.5359 GB, free: 7.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.5402, allocations: 116.3 kB / 0.536 GB, free: 7.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009006/0.5411, allocations: 321.9 kB / 0.5363 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.5413, allocations: 302.2 kB / 0.5366 GB, free: 7.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007258/0.5421, allocations: 0.6493 MB / 0.5373 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002307/0.5444, allocations: 1.76 MB / 0.539 GB, free: 5.348 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.5444, allocations: 1.188 kB / 0.539 GB, free: 5.348 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.5444, allocations: 4 kB / 0.539 GB, free: 5.344 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.5444, allocations: 0 / 0.539 GB, free: 5.344 MB / 398.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.007926/0.5524, allocations: 2.371 MB / 0.5413 GB, free: 3.816 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.5524, allocations: 9.594 kB / 0.5413 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/0.5627, allocations: 1.393 MB / 0.5427 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.5653, allocations: 0.62 MB / 0.5433 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.5656, allocations: 96.33 kB / 0.5434 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006056/0.5662, allocations: 130.1 kB / 0.5435 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004189/0.5704, allocations: 1.49 MB / 0.5449 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.559e-05/0.5705, allocations: 7.906 kB / 0.545 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/0.5706, allocations: 55.98 kB / 0.545 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.719e-05/0.5707, allocations: 36 kB / 0.545 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002938/0.5736, allocations: 1.505 MB / 0.5465 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009251/0.5829, allocations: 5.342 MB / 0.5517 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.5856, allocations: 2.171 MB / 0.5538 GB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.5867, allocations: 0.6475 MB / 0.5545 GB, free: 6.867 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.5869, allocations: 110.1 kB / 0.5546 GB, free: 6.742 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/0.587, allocations: 55.5 kB / 0.5546 GB, free: 6.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 2.665e-06/0.587, allocations: 0 / 0.5546 GB, free: 6.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.008794/0.5958, allocations: 3.09 MB / 0.5577 GB, free: 3.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.5959, allocations: 90.11 kB / 0.5577 GB, free: 3.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006676/0.5965, allocations: 469.8 kB / 0.5582 GB, free: 2.984 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.733e-05/0.5966, allocations: 45.7 kB / 0.5582 GB, free: 2.934 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.597, allocations: 467.4 kB / 0.5587 GB, free: 2.469 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003549/0.5973, allocations: 421.9 kB / 0.5591 GB, free: 2.051 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003478/0.5977, allocations: 214.8 kB / 0.5593 GB, free: 1.836 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.5979, allocations: 386.7 kB / 0.5597 GB, free: 1.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008541/0.5987, allocations: 458.4 kB / 0.5601 GB, free: 1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.5998, allocations: 0.6918 MB / 0.5608 GB, free: 224 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/0.6018, allocations: 1.198 MB / 0.5619 GB, free: 14.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.6018, allocations: 4 kB / 0.5619 GB, free: 14.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002962/0.6048, allocations: 1.586 MB / 0.5635 GB, free: 13.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.6048, allocations: 10.97 kB / 0.5635 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.6049, allocations: 8 kB / 0.5635 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.6064, allocations: 0.5321 MB / 0.564 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007763/0.6072, allocations: 199.7 kB / 0.5642 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000213/0.6074, allocations: 53.25 kB / 0.5643 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009021/0.6084, allocations: 134.5 kB / 0.5644 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.806e-05/0.6085, allocations: 48 kB / 0.5644 GB, free: 12.35 MB / 430.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.000593/0.6091, allocations: 265.6 kB / 0.5647 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/0.6093, allocations: 79.06 kB / 0.5648 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/0.6122, allocations: 1.563 MB / 0.5663 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.6123, allocations: 19.94 kB / 0.5663 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.6123, allocations: 7.984 kB / 0.5663 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.6123, allocations: 3.984 kB / 0.5663 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004912/0.6172, allocations: 2.863 MB / 0.5691 GB, free: 7.461 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.6173, allocations: 0 / 0.5691 GB, free: 7.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006414/0.6179, allocations: 147.8 kB / 0.5693 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.6193, allocations: 0.5145 MB / 0.5698 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.874e-05/0.6194, allocations: 24 kB / 0.5698 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003152/0.6198, allocations: 72.72 kB / 0.5699 GB, free: 6.703 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.6198, allocations: 3.984 kB / 0.5699 GB, free: 6.699 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/0.6242, allocations: 2.333 MB / 0.5721 GB, free: 4.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007654/0.625, allocations: 279.7 kB / 0.5724 GB, free: 4.055 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.6252, allocations: 31.84 kB / 0.5724 GB, free: 4.023 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007697/0.626, allocations: 43.92 kB / 0.5725 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.6262, allocations: 81.14 kB / 0.5726 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.778e-05/0.6263, allocations: 35.98 kB / 0.5726 GB, free: 3.863 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005051/0.6268, allocations: 314.9 kB / 0.5729 GB, free: 3.555 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6268, allocations: 0 / 0.5729 GB, free: 3.555 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001316/0.6281, allocations: 343.1 kB / 0.5732 GB, free: 3.219 MB / 430.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.0004056/0.6286, allocations: 159.1 kB / 0.5734 GB, free: 3.055 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00333/0.6319, allocations: 1.362 MB / 0.5747 GB, free: 1.695 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.6319, allocations: 1.312 kB / 0.5747 GB, free: 1.695 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.6338, allocations: 0.7699 MB / 0.5755 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008796/0.6347, allocations: 97.92 kB / 0.5755 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004917/0.6396, allocations: 2.036 MB / 0.5775 GB, free: 14.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.6406, allocations: 1.04 MB / 0.5786 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005726/0.6412, allocations: 110.8 kB / 0.5787 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.6415, allocations: 59.42 kB / 0.5787 GB, free: 13.53 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6415, allocations: 4 kB / 0.5787 GB, free: 13.52 MB / 446.1 MB Notification: Performance of Templates: time 0.02932/0.6708, allocations: 14.05 MB / 0.5924 GB, free: 15.55 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches