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.0009473/0.0009474, allocations: 102.1 kB / 16.99 MB, free: 5.941 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.001037/0.001037, allocations: 182 kB / 17.87 MB, free: 5.609 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.319/1.319, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2071/0.2071, allocations: 44.23 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004528/0.0004529, allocations: 8 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1408, allocations: 61.93 MB / 471.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006705/0.1416, allocations: 203 kB / 471.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000574/0.1422, allocations: 229.2 kB / 472 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.585e-05/0.1422, allocations: 0 / 472 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.038e-05/0.1422, allocations: 0 / 472 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.67e-06/0.1422, allocations: 0 / 472 MB, free: 13.19 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.0002773/0.1425, allocations: 43.81 kB / 472 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.448e-05/0.1425, allocations: 4 kB / 472 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.1426, allocations: 3.938 kB / 472 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.903e-05/0.1426, allocations: 0 / 472 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.423e-05/0.1427, allocations: 4 kB / 472 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.594e-06/0.1427, allocations: 0 / 472 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.1428, allocations: 51.89 kB / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.153e-06/0.1428, allocations: 0 / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.1429, allocations: 25.7 kB / 472.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.813e-05/0.143, allocations: 39.89 kB / 472.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.143, allocations: 0 / 472.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.143, allocations: 0 / 472.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.143, allocations: 0 / 472.1 MB, free: 13.02 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.0003027/0.1433, allocations: 353.1 kB / 472.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1433, allocations: 12.03 kB / 472.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.1434, allocations: 42.55 kB / 472.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.1434, allocations: 0 / 472.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.1435, allocations: 163.1 kB / 472.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-06/0.1435, allocations: 0 / 472.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.1436, allocations: 3.953 kB / 472.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.236e-05/0.1436, allocations: 33.64 kB / 472.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.1437, allocations: 0 / 472.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.1437, allocations: 0 / 472.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1437, allocations: 0 / 472.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.698e-05/0.1437, allocations: 7.938 kB / 472.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.1438, allocations: 149.7 kB / 472.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.619e-05/0.1439, allocations: 18.58 kB / 472.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-06/0.1439, allocations: 0 / 472.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.1439, allocations: 68.31 kB / 473 MB, free: 12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.144, allocations: 0 / 473 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001717/0.1441, allocations: 63.34 kB / 473 MB, free: 11.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.1442, allocations: 85.09 kB / 473.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.532e-05/0.1442, allocations: 89.86 kB / 473.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.1443, allocations: 29.7 kB / 473.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.1443, allocations: 80.14 kB / 473.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.1443, allocations: 0 / 473.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.1443, allocations: 0 / 473.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1445, allocations: 310.8 kB / 473.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-06/0.1445, allocations: 4.125 kB / 473.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.418e-06/0.1445, allocations: 4 kB / 473.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.648e-05/0.1445, allocations: 25.7 kB / 473.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1445, allocations: 0 / 473.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.054e-05/0.1446, allocations: 63.39 kB / 473.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/0.1447, allocations: 37.7 kB / 473.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1447, allocations: 7.875 kB / 473.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.1447, allocations: 3.953 kB / 473.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.1447, allocations: 0 / 473.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1447, allocations: 0 / 473.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.634e-05/0.1447, allocations: 4.094 kB / 473.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.1447, allocations: 0 / 473.8 MB, free: 11.12 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 0.0001249/0.1449, allocations: 140.1 kB / 473.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-06/0.1449, allocations: 0 / 473.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.073e-05/0.1449, allocations: 7.078 kB / 473.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.1449, allocations: 3.953 kB / 473.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1449, allocations: 0 / 473.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1449, allocations: 4 kB / 473.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.145, allocations: 149.6 kB / 474 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1451, allocations: 4 kB / 474.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.225e-06/0.1451, allocations: 3.984 kB / 474.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.1451, allocations: 0 / 474.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.1451, allocations: 0 / 474.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1451, allocations: 4 kB / 474.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/0.1451, allocations: 3.953 kB / 474.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.459e-05/0.1452, allocations: 86.78 kB / 474.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.1453, allocations: 89.28 kB / 474.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.1453, allocations: 4.031 kB / 474.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-06/0.1453, allocations: 0 / 474.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.1453, allocations: 4 kB / 474.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.1453, allocations: 3.953 kB / 474.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1454, allocations: 75.28 kB / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1454, allocations: 4 kB / 474.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002539/0.1457, allocations: 16 kB / 474.3 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.0008269/0.1465, allocations: 0.8047 MB / 475.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.334e-05/0.1466, allocations: 63.33 kB / 475.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1466, allocations: 4 kB / 475.2 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.938e-05/0.1467, allocations: 51.41 kB / 475.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.15e-05/0.1468, allocations: 4 kB / 475.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002843/0.147, allocations: 124.5 kB / 475.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.1473, allocations: 0.677 MB / 476.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.362e-06/0.1474, allocations: 0 / 476.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.227e-05/0.1474, allocations: 7.438 kB / 476.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1474, allocations: 0 / 476.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01407/0.1615, allocations: 1.383 MB / 477.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003078/0.1618, allocations: 210.3 kB / 477.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/1.863, allocations: 0 / 477.7 MB, free: 7.121 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