Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestNonlinear.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.TestNonlinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestNonlinear",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.0008659/0.0008659, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007222/0.0007221, allocations: 86.41 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3453/0.3453, allocations: 43.57 MB / 363.1 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004011/0.0004013, allocations: 12 kB / 432.1 MB, free: 5.504 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1166, allocations: 58.84 MB / 490.9 MB, free: 10.59 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005907/0.1172, allocations: 236.3 kB / 491.1 MB, free: 10.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003529/0.1208, allocations: 2.118 MB / 493.3 MB, free: 8.219 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.402e-06/0.1208, allocations: 0 / 493.3 MB, free: 8.219 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.301e-06/0.1209, allocations: 4 kB / 493.3 MB, free: 8.215 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.894e-06/0.1209, allocations: 4 kB / 493.3 MB, free: 8.211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002487/0.1234, allocations: 0.503 MB / 493.8 MB, free: 7.707 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.526e-05/0.1234, allocations: 7.984 kB / 493.8 MB, free: 7.699 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.512e-05/0.1234, allocations: 4 kB / 493.8 MB, free: 7.695 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.548e-05/0.1235, allocations: 7.984 kB / 493.8 MB, free: 7.688 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.165e-05/0.1236, allocations: 8 kB / 493.8 MB, free: 7.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-06/0.1236, allocations: 4 kB / 493.8 MB, free: 7.676 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1247, allocations: 0.5694 MB / 494.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.075e-05/0.1247, allocations: 4 kB / 494.4 MB, free: 7.102 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.1248, allocations: 29.69 kB / 494.4 MB, free: 7.066 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005743/0.1254, allocations: 287.6 kB / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1254, allocations: 0 / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1254, allocations: 0 / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1254, allocations: 0 / 494.7 MB, free: 6.785 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000493/0.1259, allocations: 425.2 kB / 495.1 MB, free: 6.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.126, allocations: 8.031 kB / 495.1 MB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.126, allocations: 110 kB / 495.2 MB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.218e-05/0.1261, allocations: 80.22 kB / 495.3 MB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.1262, allocations: 235.7 kB / 495.5 MB, free: 5.844 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.494e-05/0.1263, allocations: 150.9 kB / 495.7 MB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.332e-05/0.1264, allocations: 158.5 kB / 495.8 MB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.013e-05/0.1265, allocations: 104.9 kB / 495.9 MB, free: 5.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1265, allocations: 79.27 kB / 496 MB, free: 5.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.102e-05/0.1266, allocations: 150.6 kB / 496.2 MB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.399e-05/0.1266, allocations: 158.6 kB / 496.3 MB, free: 5.047 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.253e-05/0.1267, allocations: 150.6 kB / 496.5 MB, free: 4.898 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003022/0.127, allocations: 442 kB / 496.9 MB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.612e-05/0.1271, allocations: 177 kB / 497.1 MB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.413e-05/0.1272, allocations: 80.14 kB / 497.1 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.1272, allocations: 79.28 kB / 497.2 MB, free: 4.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.931e-05/0.1273, allocations: 135.5 kB / 497.3 MB, free: 3.926 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.293e-06/0.1273, allocations: 0 / 497.3 MB, free: 3.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 8.855e-05/0.1274, allocations: 29.69 kB / 497.4 MB, free: 3.891 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.1275, allocations: 156.4 kB / 497.5 MB, free: 3.719 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.668e-05/0.1275, allocations: 89.86 kB / 497.6 MB, free: 3.621 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.1275, allocations: 25.7 kB / 497.6 MB, free: 3.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.565e-05/0.1276, allocations: 80.14 kB / 497.7 MB, free: 3.508 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-06/0.1276, allocations: 7.875 kB / 497.7 MB, free: 3.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-07/0.1276, allocations: 4 kB / 497.7 MB, free: 3.496 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1277, allocations: 310.8 kB / 498 MB, free: 3.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-06/0.1278, allocations: 4 kB / 498 MB, free: 3.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.733e-05/0.1278, allocations: 4 kB / 498 MB, free: 3.176 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.723e-05/0.1278, allocations: 75.28 kB / 498.1 MB, free: 3.102 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.4e-05/0.1279, allocations: 75.28 kB / 498.2 MB, free: 3.027 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.874e-05/0.1279, allocations: 33.64 kB / 498.2 MB, free: 2.988 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.128, allocations: 79.28 kB / 498.3 MB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-05/0.128, allocations: 87.23 kB / 498.4 MB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.671e-05/0.1281, allocations: 154.6 kB / 498.5 MB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.605e-05/0.1281, allocations: 75.28 kB / 498.6 MB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.233e-05/0.1282, allocations: 158.4 kB / 498.8 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.892e-05/0.1283, allocations: 75.28 kB / 498.8 MB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.1283, allocations: 87.38 kB / 498.9 MB, free: 2.281 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001353/0.1285, allocations: 260.4 kB / 499.2 MB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.304e-05/0.1285, allocations: 113 kB / 499.3 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.443e-05/0.1286, allocations: 112.1 kB / 499.4 MB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.854e-05/0.1287, allocations: 180.2 kB / 499.6 MB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.928e-05/0.1287, allocations: 176.3 kB / 499.7 MB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-05/0.1288, allocations: 192.2 kB / 499.9 MB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.1291, allocations: 401.2 kB / 0.4886 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.115e-05/0.1291, allocations: 105 kB / 0.4887 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.1292, allocations: 108.9 kB / 0.4888 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.427e-05/0.1293, allocations: 176.3 kB / 0.489 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-05/0.1293, allocations: 192.2 kB / 0.4892 GB, free: 180 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2109/0.3403, allocations: 176.3 kB / 0.4893 GB, free: 43.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.788e-05/0.3404, allocations: 181.7 kB / 0.4895 GB, free: 43.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.594e-05/0.3405, allocations: 299.8 kB / 0.4898 GB, free: 43.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.3405, allocations: 184.2 kB / 0.49 GB, free: 42.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.3406, allocations: 184.8 kB / 0.4901 GB, free: 42.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.427e-05/0.3407, allocations: 106.2 kB / 0.4902 GB, free: 42.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.3407, allocations: 180 kB / 0.4904 GB, free: 42.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.3407, allocations: 105 kB / 0.4905 GB, free: 42.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.701e-05/0.3407, allocations: 76.19 kB / 0.4906 GB, free: 42.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.3407, allocations: 0 / 0.4906 GB, free: 42.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006494/0.3414, allocations: 132.9 kB / 0.4907 GB, free: 42.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001103/0.3425, allocations: 1.046 MB / 0.4917 GB, free: 41.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.008e-05/0.3426, allocations: 5.344 kB / 0.4917 GB, free: 41.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3426, allocations: 0 / 0.4917 GB, free: 41.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.164e-06/0.3426, allocations: 4.25 kB / 0.4917 GB, free: 41.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.3429, allocations: 0.5253 MB / 0.4922 GB, free: 40.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004096/0.3433, allocations: 256.9 kB / 0.4925 GB, free: 40.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.3434, allocations: 0.6766 MB / 0.4932 GB, free: 39.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.615e-05/0.3434, allocations: 8.5 kB / 0.4932 GB, free: 39.93 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3434, allocations: 0 / 0.4932 GB, free: 39.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.793/4.136, allocations: 2.795 MB / 0.4959 GB, free: 39.71 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestNonlinear.pipe 2>&1)