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: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.001254/0.001254, allocations: 192 kB / 18.56 MB, free: 4.562 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.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2009/0.2009, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.59 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1041, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.008426/0.1126, allocations: 7.72 MB / 477.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004441/0.117, allocations: 2.357 MB / 479.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006037/0.1177, allocations: 31.94 kB / 479.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003797/0.1215, allocations: 1.819 MB / 481.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.1236, allocations: 0.8717 MB / 482.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.1257, allocations: 0.8824 MB / 483 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.1274, allocations: 1.39 MB / 484.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001668/0.1291, allocations: 1.02 MB / 485.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.1301, allocations: 0.5955 MB / 486 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.1312, allocations: 0.7276 MB / 486.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003121/0.1315, allocations: 120 kB / 486.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008772/0.1324, allocations: 319.8 kB / 487.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000321/0.1327, allocations: 306.9 kB / 487.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008992/0.1336, allocations: 0.653 MB / 488.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002094/0.1357, allocations: 1.732 MB / 489.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1357, allocations: 0 / 489.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1358, allocations: 0 / 489.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1358, allocations: 0 / 489.9 MB, free: 9.656 MB / 366.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.007302/0.1431, allocations: 2.383 MB / 492.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1431, allocations: 8.031 kB / 492.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000232/0.1434, allocations: 198.7 kB / 492.5 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.1535, allocations: 1.385 MB / 493.9 MB, free: 5.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.1546, allocations: 0.609 MB / 494.5 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.372e-05/0.1547, allocations: 99.02 kB / 494.6 MB, free: 4.879 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002804/0.155, allocations: 136 kB / 494.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.1578, allocations: 1.483 MB / 496.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.1579, allocations: 7.906 kB / 496.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.158, allocations: 56 kB / 496.2 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.399e-05/0.1581, allocations: 32 kB / 496.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.1608, allocations: 1.517 MB / 497.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008106/0.169, allocations: 5.377 MB / 0.4914 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002466/0.1714, allocations: 2.178 MB / 0.4935 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.1725, allocations: 0.6476 MB / 0.4941 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.1726, allocations: 106.1 kB / 0.4942 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.1727, allocations: 55.55 kB / 0.4943 GB, free: 8.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.416e-06/0.1727, allocations: 0 / 0.4943 GB, free: 8.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.008885/0.1816, allocations: 3.102 MB / 0.4973 GB, free: 5.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.1817, allocations: 90.11 kB / 0.4974 GB, free: 5.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/0.1823, allocations: 461.9 kB / 0.4978 GB, free: 4.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/0.1824, allocations: 49.7 kB / 0.4979 GB, free: 4.938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/0.1827, allocations: 459.5 kB / 0.4983 GB, free: 4.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.183, allocations: 425.7 kB / 0.4987 GB, free: 4.059 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.1834, allocations: 214.8 kB / 0.4989 GB, free: 3.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1836, allocations: 386.8 kB / 0.4993 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008705/0.1844, allocations: 454.4 kB / 0.4997 GB, free: 3.012 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.1855, allocations: 0.6996 MB / 0.5004 GB, free: 2.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001919/0.1874, allocations: 1.198 MB / 0.5016 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.1875, allocations: 0 / 0.5016 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.1733/0.3608, allocations: 1.588 MB / 0.5031 GB, free: 47.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.3609, allocations: 8.531 kB / 0.5032 GB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/0.3609, allocations: 6.5 kB / 0.5032 GB, free: 47.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.3628, allocations: 0.5302 MB / 0.5037 GB, free: 47.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008193/0.3636, allocations: 197.9 kB / 0.5039 GB, free: 47.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001985/0.3638, allocations: 52.72 kB / 0.5039 GB, free: 47.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000719/0.3645, allocations: 122.8 kB / 0.504 GB, free: 47.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-05/0.3646, allocations: 50.77 kB / 0.5041 GB, free: 47.8 MB / 382.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.0003981/0.3651, allocations: 265.4 kB / 0.5043 GB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3652, allocations: 86.53 kB / 0.5044 GB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/0.3679, allocations: 1.57 MB / 0.506 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.3679, allocations: 14.06 kB / 0.506 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3679, allocations: 0.6562 kB / 0.506 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.3679, allocations: 7.109 kB / 0.506 GB, free: 47.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004121/0.372, allocations: 2.874 MB / 0.5088 GB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3721, allocations: 6.25 kB / 0.5088 GB, free: 46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006195/0.3727, allocations: 140.9 kB / 0.5089 GB, free: 45.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.3741, allocations: 0.5249 MB / 0.5094 GB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.657e-05/0.3742, allocations: 24.86 kB / 0.5095 GB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000313/0.3745, allocations: 69.28 kB / 0.5095 GB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3745, allocations: 0.6094 kB / 0.5095 GB, free: 45.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00362/0.3781, allocations: 2.335 MB / 0.5118 GB, free: 44.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004/0.3786, allocations: 279.4 kB / 0.5121 GB, free: 44.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.3787, allocations: 25.36 kB / 0.5121 GB, free: 44.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005881/0.3793, allocations: 44.66 kB / 0.5121 GB, free: 44.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.3795, allocations: 83.41 kB / 0.5122 GB, free: 44.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-05/0.3796, allocations: 37.02 kB / 0.5123 GB, free: 44.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004206/0.38, allocations: 309.9 kB / 0.5125 GB, free: 44.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.38, allocations: 2.344 kB / 0.5125 GB, free: 44.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001224/0.3812, allocations: 346.8 kB / 0.5129 GB, free: 44.1 MB / 382.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.004099/0.3854, allocations: 2.928 MB / 0.5157 GB, free: 42.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003613/0.389, allocations: 1.397 MB / 0.5171 GB, free: 41.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.389, allocations: 1.281 kB / 0.5171 GB, free: 41.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.3907, allocations: 0.7707 MB / 0.5179 GB, free: 41.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007723/0.3915, allocations: 105.1 kB / 0.518 GB, free: 41.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.4029, allocations: 8.622 MB / 0.5264 GB, free: 36.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.4034, allocations: 1.044 MB / 0.5274 GB, free: 35.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004928/0.4039, allocations: 110.5 kB / 0.5275 GB, free: 35.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.4043, allocations: 388.1 kB / 0.5279 GB, free: 35.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4043, allocations: 0 / 0.5279 GB, free: 35.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03984/0.4441, allocations: 21.41 MB / 0.5488 GB, free: 16.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.48, allocations: 10.64 kB / 0.5488 GB, free: 16.04 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/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