Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensors",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.00144/0.00144, allocations: 102.4 kB / 17.58 MB, free: 5.418 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.001743/0.001743, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 224.4 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 56.16 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0773/0.07854, allocations: 46.62 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors): time 0.01749/0.09606, allocations: 16.85 MB / 344.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00899/0.1051, allocations: 4.24 MB / 348.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002763/0.1079, allocations: 115.7 kB / 348.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0157/0.1237, allocations: 7.456 MB / 356 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005172/0.1288, allocations: 1.538 MB / 357.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003157/0.132, allocations: 1.208 MB / 358.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008752/0.1408, allocations: 8.499 MB / 367.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1858/0.3266, allocations: 22.67 MB / 390 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009533/0.3362, allocations: 4.943 MB / 394.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00808/0.3443, allocations: 5.543 MB / 400.4 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003432/0.3478, allocations: 1.404 MB / 401.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004366/0.3522, allocations: 1.665 MB / 403.5 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003124/0.3553, allocations: 2.712 MB / 406.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005354/0.3607, allocations: 5.381 MB / 411.6 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.374, allocations: 18.41 MB / 430 MB, free: 9.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.374, allocations: 4 kB / 430 MB, free: 9.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.374, allocations: 0 / 430 MB, free: 9.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003564/0.3744, allocations: 0 / 430 MB, free: 9.418 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2571 * Number of variables: 2571 Notification: Performance of Generate backend data structure: time 0.03247/0.4069, allocations: 10.79 MB / 440.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.212e-05/0.4069, allocations: 11.5 kB / 440.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004228/0.4112, allocations: 1.351 MB / 442.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03133/0.4425, allocations: 5.704 MB / 447.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009532/0.4521, allocations: 4.839 MB / 452.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000579/0.4527, allocations: 0.701 MB / 453.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003498/0.4562, allocations: 0.9198 MB / 454.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02994/0.4862, allocations: 13.6 MB / 467.9 MB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000235/0.4864, allocations: 7.906 kB / 467.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001918/0.4884, allocations: 390.7 kB / 468.3 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004029/0.4888, allocations: 460 kB / 468.8 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02601/0.5148, allocations: 12.82 MB / 481.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06695/0.5818, allocations: 46.94 MB / 0.5162 GB, free: 6.398 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.5967, allocations: 17.08 MB / 0.5328 GB, free: 2.977 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002674/0.5994, allocations: 1.87 MB / 0.5347 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2724/0.8718, allocations: 5.96 MB / 0.5405 GB, free: 147.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.8719, allocations: 52.02 kB / 0.5405 GB, free: 147.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=188): time 6.052e-06/0.8719, allocations: 1.469 kB / 0.5405 GB, free: 147.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.00778/0.8797, allocations: 4.307 MB / 0.5447 GB, free: 146.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.8798, allocations: 76.19 kB / 0.5448 GB, free: 146.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004218/0.884, allocations: 3.33 MB / 0.5481 GB, free: 145.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.8841, allocations: 57.58 kB / 0.5481 GB, free: 145.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/0.8858, allocations: 4.183 MB / 0.5522 GB, free: 142 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.8862, allocations: 0.6869 MB / 0.5529 GB, free: 141.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/0.8876, allocations: 1.063 MB / 0.5539 GB, free: 141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.803e-05/0.8877, allocations: 301.1 kB / 0.5542 GB, free: 140.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002586/0.8903, allocations: 2.047 MB / 0.5562 GB, free: 140 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003463/0.8937, allocations: 4.683 MB / 0.5608 GB, free: 135.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006045/0.8998, allocations: 7.098 MB / 0.5677 GB, free: 130.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.099e-05/0.8998, allocations: 27.72 kB / 0.5677 GB, free: 130 MB / 446.1 MB Notification: Performance of matching and sorting (n=649) (initialization): time 0.008947/0.9088, allocations: 7.014 MB / 0.5746 GB, free: 127.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.9089, allocations: 48.44 kB / 0.5746 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.792e-05/0.909, allocations: 93.28 kB / 0.5747 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007232/0.9097, allocations: 432.7 kB / 0.5751 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002973/0.9127, allocations: 1.179 MB / 0.5763 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003925/0.9166, allocations: 4.379 MB / 0.5806 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/0.9197, allocations: 0.7187 MB / 0.5813 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003035/0.92, allocations: 283.6 kB / 0.5815 GB, free: 123.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 418 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (623): * Single equations (assignments): 621 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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): 1 system {(3,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004631/0.9247, allocations: 3.486 MB / 0.5849 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.9252, allocations: 287.8 kB / 0.5852 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004158/0.9294, allocations: 3.316 MB / 0.5884 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002819/0.9322, allocations: 2.541 MB / 0.5909 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.9322, allocations: 4 kB / 0.5909 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.9322, allocations: 7.641 kB / 0.5909 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.9436, allocations: 9.309 MB / 0.6 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.9437, allocations: 0 / 0.6 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.9451, allocations: 362.4 kB / 0.6004 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005812/0.9457, allocations: 325.2 kB / 0.6007 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.642e-05/0.9458, allocations: 36 kB / 0.6007 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003577/0.9494, allocations: 4.201 MB / 0.6048 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9494, allocations: 2.203 kB / 0.6048 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00592/0.9553, allocations: 4.697 MB / 0.6094 GB, free: 97.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.9565, allocations: 0.5945 MB / 0.61 GB, free: 96.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000344/0.9568, allocations: 32 kB / 0.61 GB, free: 96.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.9579, allocations: 131.8 kB / 0.6101 GB, free: 96.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.9581, allocations: 125.9 kB / 0.6103 GB, free: 96.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.76e-05/0.9582, allocations: 55.98 kB / 0.6103 GB, free: 96.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002472/0.9607, allocations: 2.198 MB / 0.6125 GB, free: 94.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.9607, allocations: 0 / 0.6125 GB, free: 94.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00435/0.9651, allocations: 2.031 MB / 0.6144 GB, free: 92.01 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (sineVoltage.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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): 1 system {(3,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005847/0.9709, allocations: 5.353 MB / 0.6197 GB, free: 86.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009302/0.9803, allocations: 6.327 MB / 0.6259 GB, free: 80.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.9803, allocations: 5.812 kB / 0.6259 GB, free: 80.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.9819, allocations: 1.603 MB / 0.6274 GB, free: 78.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/0.9846, allocations: 0.6855 MB / 0.6281 GB, free: 78.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04158/1.026, allocations: 46.37 MB / 0.6734 GB, free: 27.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003795/1.03, allocations: 5.804 MB / 0.679 GB, free: 21.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003463/1.033, allocations: 1.82 MB / 0.6808 GB, free: 19.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002289/1.036, allocations: 2.858 MB / 0.6836 GB, free: 16.5 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/1.036, allocations: 4 kB / 0.6836 GB, free: 16.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.44/2.475, allocations: 92.31 MB / 0.7738 GB, free: 84.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/14.92, allocations: 12.05 kB / 0.7738 GB, free: 84.18 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_TestSensors.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/TestSensors/TestSensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches