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.0009413/0.0009414, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009438/0.0009439, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1959/0.1959, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002837, allocations: 8 kB / 418 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 63.46 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005399/0.1163, allocations: 214.9 kB / 481.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.1182, allocations: 1.551 MB / 483.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.307e-05/0.1182, allocations: 0 / 483.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.855e-05/0.1182, allocations: 0 / 483.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.338e-06/0.1183, allocations: 0 / 483.3 MB, free: 3.496 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.0006512/0.1189, allocations: 127.5 kB / 483.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.541e-05/0.119, allocations: 3.984 kB / 483.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.512e-05/0.119, allocations: 0 / 483.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.431e-05/0.119, allocations: 0 / 483.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.671e-05/0.119, allocations: 4 kB / 483.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.1191, allocations: 7.938 kB / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.1193, allocations: 91.86 kB / 483.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.139e-06/0.1193, allocations: 3.938 kB / 483.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.1193, allocations: 25.7 kB / 483.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.1196, allocations: 63.86 kB / 483.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.1196, allocations: 0 / 483.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1196, allocations: 0 / 483.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.1196, allocations: 0 / 483.6 MB, free: 3.168 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.0002794/0.1199, allocations: 369.3 kB / 484 MB, free: 2.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1199, allocations: 16.02 kB / 484 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.463e-05/0.1199, allocations: 34.56 kB / 484 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.951e-05/0.12, allocations: 0 / 484 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.763e-05/0.1201, allocations: 163 kB / 484.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-06/0.1201, allocations: 0 / 484.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.351e-06/0.1201, allocations: 0 / 484.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.164e-05/0.1202, allocations: 33.69 kB / 484.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.029e-06/0.1202, allocations: 7.875 kB / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-06/0.1202, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1202, allocations: 0 / 484.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.326e-05/0.1202, allocations: 4 kB / 484.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.1203, allocations: 157.6 kB / 484.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.088e-05/0.1204, allocations: 14.58 kB / 484.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.698e-06/0.1204, allocations: 0 / 484.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.1204, allocations: 60.36 kB / 484.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.1204, allocations: 0 / 484.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001539/0.1206, allocations: 75.42 kB / 484.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.1207, allocations: 77.11 kB / 484.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.978e-05/0.1207, allocations: 89.86 kB / 484.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.1207, allocations: 25.7 kB / 484.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.1207, allocations: 80.14 kB / 484.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.254e-05/0.1208, allocations: 0 / 484.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.1208, allocations: 0 / 484.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1209, allocations: 314.8 kB / 485.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-06/0.1209, allocations: 0 / 485.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.73e-06/0.1209, allocations: 4.031 kB / 485.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.348e-05/0.121, allocations: 33.69 kB / 485.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.121, allocations: 7.953 kB / 485.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.539e-05/0.1211, allocations: 59.34 kB / 485.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.859e-05/0.1211, allocations: 33.7 kB / 485.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1212, allocations: 0 / 485.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.1212, allocations: 0 / 485.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.1212, allocations: 0 / 485.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1212, allocations: 0 / 485.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.743e-05/0.1212, allocations: 8.094 kB / 485.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1212, allocations: 7.922 kB / 485.2 MB, free: 1.262 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.000103/0.1214, allocations: 135.5 kB / 485.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/0.1214, allocations: 7.859 kB / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.805e-06/0.1214, allocations: 3.125 kB / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1214, allocations: 0 / 485.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1214, allocations: 4 kB / 485.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1214, allocations: 0 / 485.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.346e-05/0.1215, allocations: 149.7 kB / 485.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1215, allocations: 7.938 kB / 485.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.415e-06/0.1215, allocations: 3.953 kB / 485.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.1215, allocations: 0 / 485.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.1216, allocations: 4 kB / 485.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1216, allocations: 0 / 485.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1216, allocations: 0 / 485.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.1217, allocations: 94.77 kB / 485.6 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.1218, allocations: 77.11 kB / 485.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.1218, allocations: 7.984 kB / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.1218, allocations: 0 / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.152e-05/0.1218, allocations: 0 / 485.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.1218, allocations: 4 kB / 485.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.04e-05/0.1219, allocations: 75.28 kB / 485.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1219, allocations: 0 / 485.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.1221, allocations: 35.98 kB / 485.8 MB, free: 0.5586 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.0006054/0.1227, allocations: 0.7103 MB / 486.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.325e-05/0.1228, allocations: 63.34 kB / 486.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.1228, allocations: 0 / 486.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.529e-05/0.1229, allocations: 59.34 kB / 486.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.123, allocations: 10.3 kB / 486.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003236/0.1234, allocations: 124.3 kB / 486.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.1236, allocations: 0.6731 MB / 487.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.055e-06/0.1236, allocations: 4 kB / 487.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.216e-05/0.1236, allocations: 7.438 kB / 487.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1237, allocations: 0 / 487.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01157/0.1352, allocations: 1.822 MB / 489.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.1355, allocations: 211.8 kB / 489.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/1.796, allocations: 0 / 489.5 MB, free: 12.83 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