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.001079/0.001079, allocations: 101.5 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.001202/0.001202, allocations: 180.2 kB / 17.88 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.331/1.331, 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.1943/0.1943, allocations: 44.22 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003727, allocations: 8.75 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 61.92 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005739/0.1153, allocations: 207 kB / 471.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.117, allocations: 1.325 MB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.769e-05/0.1171, allocations: 0 / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.301e-05/0.1171, allocations: 0 / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.089e-06/0.1171, allocations: 0 / 473.1 MB, free: 12.09 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.0004651/0.1176, allocations: 95.14 kB / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.209e-05/0.1176, allocations: 4 kB / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.671e-05/0.1177, allocations: 0 / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.407e-05/0.1177, allocations: 0 / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.239e-05/0.1177, allocations: 0 / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.1177, allocations: 0 / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.1179, allocations: 39.91 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.581e-06/0.1179, allocations: 4 kB / 473.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.118, allocations: 25.7 kB / 473.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.359e-05/0.118, allocations: 23.95 kB / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.1181, allocations: 0 / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.818e-06/0.1181, allocations: 4 kB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.347e-06/0.1181, allocations: 3.938 kB / 473.3 MB, free: 11.89 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.0004303/0.1185, allocations: 341.1 kB / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.1186, allocations: 8.031 kB / 473.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.781e-05/0.1186, allocations: 34.56 kB / 473.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.1186, allocations: 7.984 kB / 473.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.1188, allocations: 163.1 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1189, allocations: 0 / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.1189, allocations: 3.953 kB / 473.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.775e-05/0.119, allocations: 29.7 kB / 473.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.119, allocations: 0 / 473.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.119, allocations: 0 / 473.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.119, allocations: 0 / 473.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.302e-05/0.1191, allocations: 3.938 kB / 473.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.1193, allocations: 157.7 kB / 474 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.28e-05/0.1194, allocations: 14.58 kB / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.1194, allocations: 0 / 474 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.1194, allocations: 60.31 kB / 474.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1194, allocations: 4 kB / 474.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002275/0.1197, allocations: 71.31 kB / 474.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.1197, allocations: 81.11 kB / 474.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.241e-05/0.1198, allocations: 93.98 kB / 474.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.1198, allocations: 29.64 kB / 474.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.315e-05/0.1199, allocations: 80.14 kB / 474.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.1199, allocations: 0 / 474.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.1199, allocations: 0 / 474.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.12, allocations: 310.8 kB / 474.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-06/0.1201, allocations: 4 kB / 474.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.1201, allocations: 0 / 474.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.185e-05/0.1201, allocations: 29.77 kB / 474.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1201, allocations: 0 / 474.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.249e-05/0.1202, allocations: 71.33 kB / 474.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.1203, allocations: 29.7 kB / 474.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1203, allocations: 7.938 kB / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1203, allocations: 3.953 kB / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1203, allocations: 0 / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1203, allocations: 0 / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.819e-05/0.1203, allocations: 0 / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1203, allocations: 0 / 474.9 MB, free: 10.02 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.0001209/0.1205, allocations: 148.1 kB / 475 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.1205, allocations: 3.906 kB / 475 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.351e-05/0.1205, allocations: 7.078 kB / 475 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1205, allocations: 3.953 kB / 475 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.1205, allocations: 3.984 kB / 475 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.1205, allocations: 4 kB / 475 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.1207, allocations: 149.7 kB / 475.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1207, allocations: 0 / 475.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1207, allocations: 0 / 475.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1207, allocations: 0 / 475.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1207, allocations: 4 kB / 475.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1207, allocations: 4 kB / 475.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1207, allocations: 3.953 kB / 475.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001132/0.1208, allocations: 90.77 kB / 475.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-05/0.1209, allocations: 77.11 kB / 475.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.1209, allocations: 4 kB / 475.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.276e-05/0.1209, allocations: 4 kB / 475.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.408e-05/0.121, allocations: 4.031 kB / 475.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.121, allocations: 3.953 kB / 475.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.379e-05/0.121, allocations: 75.28 kB / 475.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.121, allocations: 0 / 475.4 MB, free: 9.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002365/0.1213, allocations: 16 kB / 475.5 MB, free: 9.316 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.0006587/0.1219, allocations: 0.662 MB / 476.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.122, allocations: 63.34 kB / 476.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.1221, allocations: 0 / 476.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.672e-05/0.1221, allocations: 63.33 kB / 476.2 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.603e-05/0.1222, allocations: 2.625 kB / 476.2 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000322/0.1225, allocations: 112.5 kB / 476.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.1228, allocations: 0.6731 MB / 477 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.1228, allocations: 0 / 477 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.1228, allocations: 11.44 kB / 477 MB, free: 7.613 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1228, allocations: 0 / 477 MB, free: 7.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01112/0.134, allocations: 1.188 MB / 478.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/0.1342, allocations: 212.2 kB / 478.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/1.79, allocations: 3.938 kB / 478.4 MB, free: 6.281 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