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.001474/0.001474, allocations: 114.6 kB / 17.33 MB, free: 5.988 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.001673/0.001673, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.3/1.3, allocations: 222.9 MB / 241.9 MB, free: 15.36 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.2014/0.2014, allocations: 44.18 MB / 336.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 68.03 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.1001, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009319/0.1094, allocations: 7.665 MB / 476.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004034/0.1135, allocations: 2.342 MB / 478.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004579/0.1139, allocations: 31.94 kB / 478.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.1175, allocations: 1.702 MB / 480.6 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001712/0.1193, allocations: 0.7828 MB / 481.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001759/0.121, allocations: 0.8176 MB / 482.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.1224, allocations: 1.397 MB / 483.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.1238, allocations: 1.122 MB / 484.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005911/0.1244, allocations: 0.5994 MB / 485.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000654/0.1251, allocations: 0.7314 MB / 486 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.1252, allocations: 112 kB / 486.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005649/0.1258, allocations: 335.8 kB / 486.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.126, allocations: 294.9 kB / 486.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005575/0.1266, allocations: 0.6608 MB / 487.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.1282, allocations: 1.721 MB / 489.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1282, allocations: 7.984 kB / 489.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1283, allocations: 0 / 489.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.1283, allocations: 7.938 kB / 489.1 MB, free: 10.24 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.007005/0.1353, allocations: 2.365 MB / 491.5 MB, free: 7.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1353, allocations: 12.03 kB / 491.5 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002085/0.1356, allocations: 198.7 kB / 491.7 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009915/0.1455, allocations: 1.389 MB / 493.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009932/0.1465, allocations: 0.609 MB / 493.7 MB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.783e-05/0.1466, allocations: 99.02 kB / 493.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.1468, allocations: 132.1 kB / 493.9 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002787/0.1496, allocations: 1.483 MB / 495.4 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.705e-05/0.1497, allocations: 11.89 kB / 495.4 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.1498, allocations: 56 kB / 495.5 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-05/0.1499, allocations: 32 kB / 495.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/0.1526, allocations: 1.505 MB / 497 MB, free: 2.203 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007989/0.1606, allocations: 5.389 MB / 0.4906 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002392/0.163, allocations: 2.181 MB / 0.4928 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.1641, allocations: 0.6475 MB / 0.4934 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.1642, allocations: 106.1 kB / 0.4935 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.1643, allocations: 51.55 kB / 0.4935 GB, free: 9.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.956e-06/0.1643, allocations: 0 / 0.4935 GB, free: 9.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.00895/0.1732, allocations: 3.094 MB / 0.4966 GB, free: 6.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.1733, allocations: 94.11 kB / 0.4966 GB, free: 6.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005186/0.1738, allocations: 465.9 kB / 0.4971 GB, free: 5.586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.353e-05/0.1739, allocations: 45.7 kB / 0.4971 GB, free: 5.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.1743, allocations: 463.5 kB / 0.4976 GB, free: 5.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003637/0.1746, allocations: 425.7 kB / 0.498 GB, free: 4.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003673/0.175, allocations: 214.8 kB / 0.4982 GB, free: 4.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.1752, allocations: 382.8 kB / 0.4986 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008588/0.1761, allocations: 454.4 kB / 0.499 GB, free: 3.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009951/0.1771, allocations: 0.6997 MB / 0.4997 GB, free: 2.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.179, allocations: 1.198 MB / 0.5008 GB, free: 1.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.179, allocations: 0 / 0.5008 GB, free: 1.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.1951/0.3741, allocations: 1.588 MB / 0.5024 GB, free: 47.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.3742, allocations: 8.359 kB / 0.5024 GB, free: 47.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.3742, allocations: 8.469 kB / 0.5024 GB, free: 47.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/0.376, allocations: 0.5307 MB / 0.5029 GB, free: 47.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000926/0.3769, allocations: 202.5 kB / 0.5031 GB, free: 47.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001963/0.3771, allocations: 46.94 kB / 0.5032 GB, free: 47.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007397/0.3778, allocations: 126.3 kB / 0.5033 GB, free: 47.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.886e-05/0.378, allocations: 48.36 kB / 0.5033 GB, free: 47.62 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.0004633/0.3784, allocations: 272.8 kB / 0.5036 GB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.3786, allocations: 80.8 kB / 0.5037 GB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002823/0.3814, allocations: 1.574 MB / 0.5052 GB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.3815, allocations: 13.91 kB / 0.5052 GB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.3815, allocations: 4.812 kB / 0.5052 GB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.3815, allocations: 7.188 kB / 0.5052 GB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.3861, allocations: 2.876 MB / 0.508 GB, free: 46.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.3861, allocations: 0 / 0.508 GB, free: 46.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006755/0.3868, allocations: 140.7 kB / 0.5082 GB, free: 46.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.3883, allocations: 0.5264 MB / 0.5087 GB, free: 45.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.371e-05/0.3884, allocations: 25.08 kB / 0.5087 GB, free: 45.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003049/0.3887, allocations: 73.92 kB / 0.5088 GB, free: 45.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3887, allocations: 3.828 kB / 0.5088 GB, free: 45.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003692/0.3924, allocations: 2.323 MB / 0.5111 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004195/0.3928, allocations: 288 kB / 0.5113 GB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.3929, allocations: 26.06 kB / 0.5114 GB, free: 44.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006179/0.3936, allocations: 49.97 kB / 0.5114 GB, free: 44.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.3938, allocations: 78.27 kB / 0.5115 GB, free: 44.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.62e-05/0.3939, allocations: 36.02 kB / 0.5115 GB, free: 44.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003346/0.3942, allocations: 311.1 kB / 0.5118 GB, free: 44.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3942, allocations: 0 / 0.5118 GB, free: 44.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009935/0.3952, allocations: 344.6 kB / 0.5121 GB, free: 44.22 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.004282/0.3995, allocations: 2.923 MB / 0.515 GB, free: 42.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00369/0.4032, allocations: 1.408 MB / 0.5164 GB, free: 41.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4032, allocations: 0 / 0.5164 GB, free: 41.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/0.4049, allocations: 0.7711 MB / 0.5171 GB, free: 41.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007747/0.4057, allocations: 102.6 kB / 0.5172 GB, free: 41.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/0.4189, allocations: 9.127 MB / 0.5261 GB, free: 36.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005969/0.4195, allocations: 1.047 MB / 0.5272 GB, free: 35.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005706/0.4201, allocations: 107.7 kB / 0.5273 GB, free: 35.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000447/0.4205, allocations: 390 kB / 0.5276 GB, free: 35.05 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4206, allocations: 0 / 0.5276 GB, free: 35.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0355/0.4561, allocations: 21.2 MB / 0.5483 GB, free: 16.48 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.4563, allocations: 242.5 kB / 0.5486 GB, free: 16.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.318/2.775, allocations: 0 / 0.5486 GB, free: 16.22 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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