Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002179/0.002179, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.155/2.155, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001169/0.001169, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3054/0.3054, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.641e-05, allocations: 0 / 418.3 MB, free: 40.97 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4829/0.483, allocations: 58.86 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1676/0.6507, allocations: 84.81 MB / 0.5488 GB, free: 14.41 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.651, allocations: 63.97 kB / 0.5489 GB, free: 14.35 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03089/0.6819, allocations: 6.327 MB / 0.555 GB, free: 8.02 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.682, allocations: 4 kB / 0.5551 GB, free: 8.016 MB / 395.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.682, allocations: 3.938 kB / 0.5551 GB, free: 8.012 MB / 395.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.0004146/0.6824, allocations: 372.1 kB / 0.5554 GB, free: 7.598 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.6825, allocations: 12.03 kB / 0.5554 GB, free: 7.586 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.6826, allocations: 0 / 0.5554 GB, free: 7.586 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.6827, allocations: 163 kB / 0.5556 GB, free: 7.387 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.6827, allocations: 0 / 0.5556 GB, free: 7.387 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-06/0.6827, allocations: 0 / 0.5556 GB, free: 7.387 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.05e-05/0.6828, allocations: 7.938 kB / 0.5556 GB, free: 7.379 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.243e-05/0.6829, allocations: 33.69 kB / 0.5556 GB, free: 7.34 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.6829, allocations: 0 / 0.5556 GB, free: 7.34 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.6829, allocations: 0 / 0.5556 GB, free: 7.34 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.6829, allocations: 0 / 0.5556 GB, free: 7.34 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000151/0.6831, allocations: 130.2 kB / 0.5557 GB, free: 7.176 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.167e-05/0.6831, allocations: 18.58 kB / 0.5558 GB, free: 7.148 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.675e-05/0.6832, allocations: 4.859 kB / 0.5558 GB, free: 7.141 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-06/0.6832, allocations: 0 / 0.5558 GB, free: 7.141 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.546e-05/0.6833, allocations: 64.33 kB / 0.5558 GB, free: 7.062 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.903e-06/0.6833, allocations: 0 / 0.5558 GB, free: 7.062 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001957/0.6835, allocations: 37.62 kB / 0.5559 GB, free: 7.02 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.6835, allocations: 77.11 kB / 0.5559 GB, free: 6.926 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.635e-05/0.6836, allocations: 85 kB / 0.556 GB, free: 6.836 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.6836, allocations: 29.7 kB / 0.556 GB, free: 6.801 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.72e-05/0.6837, allocations: 150.6 kB / 0.5562 GB, free: 6.652 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.6838, allocations: 8.031 kB / 0.5562 GB, free: 6.645 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-06/0.6838, allocations: 0 / 0.5562 GB, free: 6.645 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.6839, allocations: 310.8 kB / 0.5565 GB, free: 6.332 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.776e-06/0.684, allocations: 0 / 0.5565 GB, free: 6.332 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-06/0.684, allocations: 0 / 0.5565 GB, free: 6.332 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.883e-05/0.684, allocations: 4 kB / 0.5565 GB, free: 6.328 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.684, allocations: 3.984 kB / 0.5565 GB, free: 6.324 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.033e-05/0.6841, allocations: 37.66 kB / 0.5565 GB, free: 6.281 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.805e-05/0.6842, allocations: 33.64 kB / 0.5566 GB, free: 6.242 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.6842, allocations: 4.094 kB / 0.5566 GB, free: 6.238 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.6842, allocations: 0 / 0.5566 GB, free: 6.238 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-06/0.6842, allocations: 0 / 0.5566 GB, free: 6.238 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.259e-06/0.6843, allocations: 0 / 0.5566 GB, free: 6.238 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.923e-05/0.6843, allocations: 0 / 0.5566 GB, free: 6.238 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.6843, allocations: 7.938 kB / 0.5566 GB, free: 6.23 MB / 395.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 () * 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.0001072/0.6844, allocations: 130.7 kB / 0.5567 GB, free: 6.09 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.318e-05/0.6845, allocations: 45.66 kB / 0.5567 GB, free: 6.039 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.874e-06/0.6845, allocations: 0 / 0.5567 GB, free: 6.039 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.426e-05/0.6846, allocations: 7.781 kB / 0.5568 GB, free: 6.031 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.6846, allocations: 3.938 kB / 0.5568 GB, free: 6.027 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6846, allocations: 3.984 kB / 0.5568 GB, free: 6.023 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.6846, allocations: 0 / 0.5568 GB, free: 6.023 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.6847, allocations: 126.2 kB / 0.5569 GB, free: 5.863 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.6847, allocations: 4 kB / 0.5569 GB, free: 5.859 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.6848, allocations: 0 / 0.5569 GB, free: 5.859 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.6848, allocations: 3.953 kB / 0.5569 GB, free: 5.855 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.6848, allocations: 0 / 0.5569 GB, free: 5.855 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.6848, allocations: 0 / 0.5569 GB, free: 5.855 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.6848, allocations: 0 / 0.5569 GB, free: 5.855 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001246/0.6849, allocations: 73.06 kB / 0.557 GB, free: 5.766 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.157e-05/0.685, allocations: 81.09 kB / 0.557 GB, free: 5.668 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.685, allocations: 3.953 kB / 0.557 GB, free: 5.664 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.138e-05/0.6851, allocations: 0 / 0.557 GB, free: 5.664 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.6851, allocations: 0 / 0.557 GB, free: 5.664 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.6851, allocations: 7.984 kB / 0.557 GB, free: 5.656 MB / 395.1 MB Notification: Performance of sorting global known variables: time 3.713e-05/0.6852, allocations: 79.31 kB / 0.5571 GB, free: 5.578 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6852, allocations: 0 / 0.5571 GB, free: 5.578 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000264/0.6854, allocations: 4 kB / 0.5571 GB, free: 5.574 MB / 395.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) * 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.0006967/0.6861, allocations: 0.61 MB / 0.5577 GB, free: 4.934 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.6863, allocations: 63.41 kB / 0.5578 GB, free: 4.859 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6863, allocations: 0 / 0.5578 GB, free: 4.859 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 4.391e-05/0.6863, allocations: 51.41 kB / 0.5578 GB, free: 4.797 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.6865, allocations: 11.89 kB / 0.5578 GB, free: 4.785 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003108/0.6868, allocations: 103.4 kB / 0.5579 GB, free: 4.641 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.6871, allocations: 0.6806 MB / 0.5586 GB, free: 3.934 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.6872, allocations: 7.438 kB / 0.5586 GB, free: 3.926 MB / 395.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6872, allocations: 128 / 0.5586 GB, free: 3.926 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.316/3.003, allocations: 0.5879 MB / 0.5592 GB, free: 3.348 MB / 395.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestScalarFunctions_res.mat does not exist to compare? outputFormat=mat