Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001045, allocations: 96.19 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 192.9 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1993/0.1993, allocations: 45.91 MB / 344.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002455, allocations: 8 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.128, allocations: 63.46 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006389/0.1287, allocations: 222.9 kB / 481.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.1307, allocations: 1.548 MB / 483.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.748e-05/0.1307, allocations: 0 / 483.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.1308, allocations: 3.938 kB / 483.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.1308, allocations: 0 / 483.4 MB, free: 3.5 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function ‘ModelicaTest.Math.ScalarFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1313, allocations: 131.7 kB / 483.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.52e-05/0.1314, allocations: 7.938 kB / 483.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.452e-05/0.1314, allocations: 0 / 483.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.357e-05/0.1314, allocations: 0 / 483.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.242e-05/0.1315, allocations: 4 kB / 483.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.1315, allocations: 0 / 483.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.1317, allocations: 107.8 kB / 483.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.14e-06/0.1318, allocations: 4 kB / 483.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.845e-05/0.1318, allocations: 25.7 kB / 483.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.1319, allocations: 63.92 kB / 483.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1319, allocations: 0 / 483.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.132, allocations: 0 / 483.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.132, allocations: 0 / 483.7 MB, free: 3.156 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.0003243/0.1323, allocations: 369.3 kB / 484.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1323, allocations: 8.031 kB / 484.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.739e-05/0.1324, allocations: 30.56 kB / 484.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.944e-05/0.1324, allocations: 0 / 484.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.691e-05/0.1325, allocations: 171 kB / 484.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1325, allocations: 0 / 484.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.1325, allocations: 0 / 484.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.952e-05/0.1326, allocations: 41.62 kB / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.1326, allocations: 0 / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.1326, allocations: 0 / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1326, allocations: 0 / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.46e-05/0.1327, allocations: 0 / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001234/0.1328, allocations: 145.6 kB / 484.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.273e-05/0.1328, allocations: 26.59 kB / 484.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.181e-05/0.1328, allocations: 4.859 kB / 484.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.012e-06/0.1329, allocations: 0 / 484.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.1329, allocations: 68.27 kB / 484.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.1329, allocations: 0 / 484.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.1331, allocations: 59.41 kB / 484.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.1331, allocations: 81.22 kB / 484.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.565e-05/0.1332, allocations: 93.86 kB / 484.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1332, allocations: 25.7 kB / 484.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.837e-05/0.1332, allocations: 80.14 kB / 484.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.1332, allocations: 3.984 kB / 484.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.853e-06/0.1333, allocations: 3.938 kB / 484.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1334, allocations: 318.8 kB / 485.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.1334, allocations: 3.938 kB / 485.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.548e-06/0.1334, allocations: 0 / 485.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.967e-05/0.1334, allocations: 33.72 kB / 485.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1335, allocations: 7.938 kB / 485.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.57e-05/0.1335, allocations: 59.39 kB / 485.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.1336, allocations: 33.7 kB / 485.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1336, allocations: 0 / 485.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1336, allocations: 0 / 485.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.133e-06/0.1336, allocations: 0 / 485.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1336, allocations: 3.984 kB / 485.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.528e-05/0.1337, allocations: 0 / 485.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.1337, allocations: 0 / 485.4 MB, free: 1.25 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 9.602e-05/0.1338, allocations: 147.5 kB / 485.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.1338, allocations: 7.891 kB / 485.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.705e-06/0.1338, allocations: 3.125 kB / 485.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1338, allocations: 0 / 485.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1338, allocations: 4 kB / 485.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1338, allocations: 0 / 485.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.1339, allocations: 141.7 kB / 485.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1339, allocations: 3.953 kB / 485.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1339, allocations: 0 / 485.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.134, allocations: 4 kB / 485.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.134, allocations: 11.98 kB / 485.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.134, allocations: 0 / 485.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.134, allocations: 3.938 kB / 485.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.633e-05/0.1341, allocations: 86.84 kB / 485.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.1341, allocations: 85.05 kB / 485.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.1341, allocations: 0 / 485.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.779e-06/0.1342, allocations: 4.031 kB / 485.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.1342, allocations: 3.984 kB / 485.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1342, allocations: 4 kB / 485.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.841e-05/0.1342, allocations: 75.28 kB / 485.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1342, allocations: 0 / 485.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1345, allocations: 43.98 kB / 486 MB, free: 0.5273 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.0006825/0.1352, allocations: 0.7064 MB / 486.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.1353, allocations: 59.39 kB / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1353, allocations: 0 / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.435e-05/0.1353, allocations: 55.41 kB / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.1355, allocations: 4 kB / 486.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.1358, allocations: 136.4 kB / 486.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1361, allocations: 0.6692 MB / 487.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.093e-06/0.1361, allocations: 0 / 487.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.1361, allocations: 11.44 kB / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.415e-06/0.1362, allocations: 0 / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0122/0.1484, allocations: 1.842 MB / 489.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.1486, allocations: 208.7 kB / 489.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/1.973, allocations: 0 / 489.7 MB, free: 12.8 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat does not exist to compare? outputFormat=mat