Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",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.001016/0.001022, allocations: 97.22 kB / 17 MB, free: 6.402 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.001333/0.001333, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.369/1.369, allocations: 223.3 MB / 241.9 MB, free: 312 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2388/0.2388, allocations: 44.22 MB / 337.2 MB, free: 2.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.000312, allocations: 8.219 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1219, allocations: 61.93 MB / 471.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006168/0.1225, allocations: 203 kB / 471.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005628/0.1231, allocations: 233.1 kB / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.464e-05/0.1231, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.164e-05/0.1232, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.432e-06/0.1232, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.1235, allocations: 47.89 kB / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.71e-05/0.1235, allocations: 0 / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.1236, allocations: 4 kB / 472.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.505e-05/0.1236, allocations: 0 / 472.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.698e-05/0.1236, allocations: 4 kB / 472.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.717e-06/0.1236, allocations: 0 / 472.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.1237, allocations: 51.95 kB / 472.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.1238, allocations: 3.984 kB / 472.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.755e-05/0.1238, allocations: 25.7 kB / 472.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.823e-05/0.1239, allocations: 43.94 kB / 472.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1239, allocations: 0 / 472.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1239, allocations: 0 / 472.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.1239, allocations: 0 / 472.3 MB, free: 13.04 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002838/0.1242, allocations: 363.3 kB / 472.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1243, allocations: 8.031 kB / 472.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.42e-05/0.1243, allocations: 34.5 kB / 472.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.255e-05/0.1243, allocations: 4 kB / 472.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.431e-05/0.1244, allocations: 159.1 kB / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.1244, allocations: 4 kB / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.1245, allocations: 3.953 kB / 472.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.355e-05/0.1246, allocations: 25.7 kB / 472.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.1246, allocations: 8 kB / 472.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.1246, allocations: 3.984 kB / 472.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1246, allocations: 0 / 472.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.661e-05/0.1246, allocations: 3.938 kB / 472.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001116/0.1247, allocations: 141.7 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.875e-05/0.1248, allocations: 26.55 kB / 473 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.225e-05/0.1248, allocations: 4.859 kB / 473 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.222e-06/0.1248, allocations: 0 / 473 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.1249, allocations: 68.28 kB / 473.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1249, allocations: 0 / 473.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.125, allocations: 63.39 kB / 473.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.1251, allocations: 81.05 kB / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.624e-05/0.1251, allocations: 93.86 kB / 473.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.1251, allocations: 25.7 kB / 473.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.1252, allocations: 80.14 kB / 473.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.1252, allocations: 128 / 473.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-06/0.1252, allocations: 4 kB / 473.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.1253, allocations: 314.8 kB / 473.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.1253, allocations: 4 kB / 473.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.779e-06/0.1253, allocations: 3.938 kB / 473.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.571e-05/0.1254, allocations: 25.7 kB / 473.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1254, allocations: 0 / 473.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.392e-05/0.1254, allocations: 59.41 kB / 473.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.1255, allocations: 37.7 kB / 473.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1255, allocations: 12.03 kB / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.1255, allocations: 0 / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1255, allocations: 0 / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1255, allocations: 0 / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1256, allocations: 0 / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.1256, allocations: 3.938 kB / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.421e-05/0.1257, allocations: 136.1 kB / 474 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-06/0.1257, allocations: 0 / 474 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.1257, allocations: 7.078 kB / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1257, allocations: 7.953 kB / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1257, allocations: 4 kB / 474 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1257, allocations: 0 / 474 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.637e-05/0.1258, allocations: 145.7 kB / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1258, allocations: 4 kB / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1258, allocations: 0 / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1258, allocations: 0 / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.1259, allocations: 4 kB / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1259, allocations: 0 / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1259, allocations: 3.953 kB / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.811e-05/0.126, allocations: 90.83 kB / 474.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.126, allocations: 89.28 kB / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.126, allocations: 3.938 kB / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.201e-05/0.1261, allocations: 4 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.832e-05/0.1261, allocations: 7.891 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.1261, allocations: 3.984 kB / 474.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.04e-05/0.1261, allocations: 79.28 kB / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1261, allocations: 4.031 kB / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.1264, allocations: 16 kB / 474.5 MB, free: 10.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007316/0.1271, allocations: 0.804 MB / 475.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.474e-05/0.1272, allocations: 59.41 kB / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1272, allocations: 0 / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.741e-05/0.1272, allocations: 63.39 kB / 475.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.1274, allocations: 6.5 kB / 475.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002562/0.1276, allocations: 120.4 kB / 475.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.1278, allocations: 0.6692 MB / 476.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.449e-06/0.1278, allocations: 0 / 476.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.202e-05/0.1279, allocations: 11.44 kB / 476.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1279, allocations: 3.938 kB / 476.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01209/0.14, allocations: 1.402 MB / 477.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.1402, allocations: 208.5 kB / 477.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/1.912, allocations: 0 / 477.8 MB, free: 7.117 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat