Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.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.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions",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.0007953/0.0007953, allocations: 97.45 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.0007907/0.000791, allocations: 177.3 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.302/1.302, allocations: 223.3 MB / 241.9 MB, free: 14.61 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.192/0.192, allocations: 44.22 MB / 337.2 MB, free: 2.578 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002992, allocations: 8 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09599/0.09631, allocations: 61.93 MB / 471.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.000509/0.09685, allocations: 214.9 kB / 471.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.09859, allocations: 1.332 MB / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.09862, allocations: 0 / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.358e-06/0.09864, allocations: 0 / 473.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.561e-06/0.09865, allocations: 0 / 473.2 MB, free: 12.05 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0004318/0.09909, allocations: 87.34 kB / 473.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.66e-05/0.09914, allocations: 4 kB / 473.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.09919, allocations: 7.922 kB / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.691e-05/0.09921, allocations: 4 kB / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.442e-05/0.09924, allocations: 0 / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.574e-06/0.09926, allocations: 0 / 473.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.09943, allocations: 39.97 kB / 473.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-06/0.09944, allocations: 0 / 473.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.945e-05/0.09948, allocations: 25.7 kB / 473.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.05e-05/0.09957, allocations: 31.95 kB / 473.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.09958, allocations: 0 / 473.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09958, allocations: 0 / 473.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.09959, allocations: 0 / 473.4 MB, free: 11.86 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.0003366/0.09993, allocations: 345.1 kB / 473.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.09998, allocations: 12.03 kB / 473.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.1, allocations: 30.56 kB / 473.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.413e-05/0.1001, allocations: 0 / 473.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.1002, allocations: 163 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.1002, allocations: 0 / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-06/0.1002, allocations: 7.953 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.254e-05/0.1003, allocations: 25.7 kB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.1003, allocations: 3.938 kB / 474 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.1003, allocations: 7.984 kB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.1003, allocations: 0 / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.034e-05/0.1004, allocations: 8 kB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001382/0.1005, allocations: 141.7 kB / 474.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.033e-05/0.1005, allocations: 22.55 kB / 474.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.5e-05/0.1006, allocations: 4.859 kB / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-06/0.1006, allocations: 0 / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.126e-05/0.1006, allocations: 68.22 kB / 474.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1006, allocations: 0 / 474.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001731/0.1008, allocations: 63.45 kB / 474.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.1009, allocations: 77.11 kB / 474.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.054e-05/0.101, allocations: 93.8 kB / 474.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.101, allocations: 29.7 kB / 474.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.101, allocations: 80.14 kB / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.101, allocations: 0 / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-06/0.1011, allocations: 4.062 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1012, allocations: 322.8 kB / 474.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-06/0.1012, allocations: 0 / 474.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.1012, allocations: 4 kB / 474.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.762e-05/0.1013, allocations: 25.7 kB / 474.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1013, allocations: 0 / 474.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.165e-05/0.1013, allocations: 59.41 kB / 475 MB, free: 10.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.1014, allocations: 29.7 kB / 475 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1014, allocations: 7.938 kB / 475 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1014, allocations: 4.094 kB / 475 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.875e-06/0.1014, allocations: 4 kB / 475 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.1014, allocations: 0 / 475 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.578e-05/0.1015, allocations: 0 / 475 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-06/0.1015, allocations: 0 / 475 MB, free: 9.977 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.0001019/0.1016, allocations: 140.1 kB / 475.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.1016, allocations: 3.906 kB / 475.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.52e-05/0.1016, allocations: 11.06 kB / 475.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1016, allocations: 7.891 kB / 475.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1016, allocations: 4 kB / 475.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1016, allocations: 0 / 475.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.1018, allocations: 153.6 kB / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1018, allocations: 0 / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1018, allocations: 0 / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.1018, allocations: 0 / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.1018, allocations: 0 / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1018, allocations: 4 kB / 475.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1018, allocations: 3.953 kB / 475.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.214e-05/0.1019, allocations: 94.83 kB / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.323e-05/0.1019, allocations: 77.11 kB / 475.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.102, allocations: 4 kB / 475.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.102, allocations: 0 / 475.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.465e-05/0.102, allocations: 3.953 kB / 475.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.102, allocations: 3.984 kB / 475.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.789e-05/0.102, allocations: 75.28 kB / 475.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.102, allocations: 0 / 475.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002128/0.1023, allocations: 16 kB / 475.6 MB, free: 9.277 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.0005031/0.1028, allocations: 0.6628 MB / 476.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.521e-05/0.1029, allocations: 67.42 kB / 476.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1029, allocations: 4 kB / 476.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.563e-05/0.1029, allocations: 51.41 kB / 476.4 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.103, allocations: 8.219 kB / 476.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002627/0.1033, allocations: 112.3 kB / 476.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.1036, allocations: 0.6692 MB / 477.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.889e-06/0.1036, allocations: 0 / 477.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.016e-05/0.1036, allocations: 7.438 kB / 477.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1036, allocations: 0 / 477.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01118/0.1148, allocations: 1.208 MB / 478.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003051/0.1151, allocations: 218.2 kB / 478.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.837/1.952, allocations: 4 kB / 478.6 MB, free: 6.234 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat does not exist to compare? outputFormat=mat