Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001746/0.001746, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002063/0.002063, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2204/0.2204, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002239/0.00224, allocations: 79.17 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.112, allocations: 62.44 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00214/0.1141, allocations: 499.6 kB / 480.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.1165, allocations: 1.648 MB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.02e-05/0.1165, allocations: 0 / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.076e-05/0.1166, allocations: 0 / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.679e-06/0.1166, allocations: 0 / 482.3 MB, free: 3 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0007512/0.1173, allocations: 166.6 kB / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.159e-05/0.1174, allocations: 0 / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.036e-05/0.1174, allocations: 4 kB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.398e-05/0.1174, allocations: 3.938 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.75e-05/0.1175, allocations: 0 / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.1175, allocations: 0 / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000317/0.1178, allocations: 119.9 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.1178, allocations: 0 / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.257e-05/0.1178, allocations: 8 kB / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.1181, allocations: 95.89 kB / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1181, allocations: 0 / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1181, allocations: 0 / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1181, allocations: 0 / 482.7 MB, free: 2.613 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.0003891/0.1185, allocations: 369.4 kB / 483.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1185, allocations: 8.031 kB / 483.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.1186, allocations: 34.75 kB / 483.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.656e-05/0.1186, allocations: 0.9375 kB / 483.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.1187, allocations: 164.4 kB / 483.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.1188, allocations: 4.375 kB / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.1188, allocations: 384 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.391e-05/0.1189, allocations: 37.77 kB / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.1189, allocations: 0 / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.1189, allocations: 0 / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1189, allocations: 0 / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.928e-05/0.1189, allocations: 0 / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.1191, allocations: 161.7 kB / 483.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.992e-05/0.1192, allocations: 18.58 kB / 483.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.022e-05/0.1192, allocations: 8.953 kB / 483.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.1192, allocations: 3.938 kB / 483.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.404e-05/0.1193, allocations: 60.2 kB / 483.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1193, allocations: 3.938 kB / 483.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.1194, allocations: 67.39 kB / 483.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.1195, allocations: 77.11 kB / 483.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.117e-05/0.1196, allocations: 93.98 kB / 483.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1196, allocations: 25.7 kB / 483.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/0.1197, allocations: 80.14 kB / 483.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.1197, allocations: 7.938 kB / 483.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.1197, allocations: 9.719 kB / 483.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1199, allocations: 310.8 kB / 484.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.1199, allocations: 4 kB / 484.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-06/0.1199, allocations: 7.922 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.253e-05/0.12, allocations: 68.33 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.12, allocations: 0 / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.114e-05/0.12, allocations: 59.39 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.1201, allocations: 37.64 kB / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1201, allocations: 0 / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1201, allocations: 3.984 kB / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1201, allocations: 0 / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1201, allocations: 4 kB / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.526e-05/0.1202, allocations: 0 / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1202, allocations: 8.031 kB / 484.4 MB, free: 0.6289 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.31e-05/0.1203, allocations: 135.5 kB / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.1203, allocations: 3.938 kB / 484.6 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-06/0.1203, allocations: 11.06 kB / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1203, allocations: 0 / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1203, allocations: 0 / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1203, allocations: 0 / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1205, allocations: 149.6 kB / 484.7 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1205, allocations: 0 / 484.7 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1205, allocations: 0 / 484.7 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1205, allocations: 11.94 kB / 484.7 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.1205, allocations: 0 / 484.7 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1205, allocations: 0 / 484.7 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1205, allocations: 0 / 484.7 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.1206, allocations: 90.83 kB / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.1207, allocations: 81.05 kB / 484.9 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.1207, allocations: 0 / 484.9 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.182e-05/0.1207, allocations: 4.031 kB / 484.9 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.454e-05/0.1207, allocations: 4 kB / 484.9 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.1207, allocations: 0 / 484.9 MB, free: 44 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.151e-05/0.1208, allocations: 75.28 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.759e-06/0.1208, allocations: 0 / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.1211, allocations: 59.8 kB / 485 MB, free: 15.91 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006477/0.1217, allocations: 0.6953 MB / 485.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.022e-05/0.1218, allocations: 59.41 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.1219, allocations: 0 / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.424e-05/0.1219, allocations: 63.33 kB / 485.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.122, allocations: 0 / 485.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.1224, allocations: 138.6 kB / 486 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.1227, allocations: 0.669 MB / 486.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.18e-06/0.1227, allocations: 0 / 486.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.297e-05/0.1227, allocations: 11.44 kB / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1227, allocations: 0 / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.1462, allocations: 2.136 MB / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.748/7.895, allocations: 12.58 kB / 488.8 MB, free: 12.08 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1)