Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear.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 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 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 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.TestNonlinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestNonlinear",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.001665/0.001665, allocations: 98.62 kB / 16.26 MB, free: 5.961 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.001781/0.001781, allocations: 189.1 kB / 17.19 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2102/0.2102, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00222/0.00222, allocations: 64.14 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09943/0.1017, allocations: 57.79 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001414/0.1031, allocations: 0.4936 MB / 441.1 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1055, allocations: 2.216 MB / 443.3 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.35e-06/0.1055, allocations: 3.938 kB / 443.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.257e-06/0.1056, allocations: 0 / 443.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 1.383e-06/0.1056, allocations: 0 / 443.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001861/0.1075, allocations: 0.6111 MB / 443.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.463e-05/0.1075, allocations: 11.98 kB / 443.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.132e-05/0.1076, allocations: 3.984 kB / 443.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.097e-05/0.1076, allocations: 8 kB / 444 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.692e-05/0.1077, allocations: 8 kB / 444 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.331e-06/0.1077, allocations: 0 / 444 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007798/0.1085, allocations: 0.6007 MB / 444.6 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.1085, allocations: 4 kB / 444.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.086e-05/0.1085, allocations: 3.984 kB / 444.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.109, allocations: 423.4 kB / 445 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.109, allocations: 4 kB / 445 MB, free: 2.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.109, allocations: 0 / 445 MB, free: 2.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.109, allocations: 4 kB / 445 MB, free: 2.41 MB / 318.1 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.0002739/0.1093, allocations: 425.2 kB / 445.4 MB, free: 1.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1093, allocations: 15.89 kB / 445.4 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.305e-05/0.1093, allocations: 106 kB / 445.5 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.453e-05/0.1094, allocations: 76.22 kB / 445.6 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.694e-05/0.1094, allocations: 235.7 kB / 445.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.1095, allocations: 150.9 kB / 446 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.1095, allocations: 158.5 kB / 446.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.988e-05/0.1095, allocations: 108.9 kB / 446.2 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1096, allocations: 75.28 kB / 446.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.1096, allocations: 154.6 kB / 446.5 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.1096, allocations: 154.5 kB / 446.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.072e-05/0.1096, allocations: 154.6 kB / 446.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.1098, allocations: 442 kB / 447.2 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.719e-05/0.1099, allocations: 177 kB / 447.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.746e-05/0.1099, allocations: 84.12 kB / 447.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.11, allocations: 75.28 kB / 447.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.006e-05/0.11, allocations: 135.5 kB / 447.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.11, allocations: 0 / 447.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 6.898e-05/0.1101, allocations: 29.7 kB / 447.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.1102, allocations: 160.3 kB / 447.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.018e-05/0.1102, allocations: 89.86 kB / 447.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.1102, allocations: 25.7 kB / 448 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.482e-05/0.1103, allocations: 80.14 kB / 448 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-06/0.1103, allocations: 8 kB / 448 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.493e-05/0.1103, allocations: 17.72 kB / 448.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/0.1104, allocations: 314.8 kB / 448.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.569e-06/0.1104, allocations: 0 / 448.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.021e-05/0.1104, allocations: 0 / 448.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.627e-05/0.1105, allocations: 75.28 kB / 448.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.377e-05/0.1105, allocations: 79.28 kB / 448.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.226e-05/0.1106, allocations: 33.62 kB / 448.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.1106, allocations: 83.31 kB / 448.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/0.1106, allocations: 83.3 kB / 448.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.913e-05/0.1107, allocations: 158.6 kB / 448.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.911e-05/0.1108, allocations: 79.22 kB / 448.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-05/0.1108, allocations: 158.5 kB / 449.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.1109, allocations: 79.28 kB / 449.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.111, allocations: 83.22 kB / 449.3 MB, free: 13.87 MB / 334.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001771/0.1111, allocations: 268.3 kB / 449.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.295e-05/0.1112, allocations: 104.9 kB / 449.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.97e-05/0.1113, allocations: 108 kB / 449.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-05/0.1113, allocations: 184.3 kB / 449.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-05/0.1114, allocations: 180.3 kB / 450.1 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.138e-05/0.1115, allocations: 188.2 kB / 450.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.1117, allocations: 401.2 kB / 450.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-05/0.1117, allocations: 104.9 kB / 450.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.644e-05/0.1118, allocations: 101 kB / 450.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-05/0.1118, allocations: 184.2 kB / 451 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-05/0.1119, allocations: 184.2 kB / 451.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.984e-05/0.112, allocations: 180.3 kB / 451.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.718e-05/0.1121, allocations: 184.2 kB / 451.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.1122, allocations: 311.7 kB / 451.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-05/0.1123, allocations: 182.1 kB / 452.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.813e-05/0.1124, allocations: 180.3 kB / 452.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.297e-05/0.1124, allocations: 104.9 kB / 452.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.1125, allocations: 180.2 kB / 452.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.1125, allocations: 112.9 kB / 452.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.325e-05/0.1126, allocations: 75.28 kB / 452.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1126, allocations: 4 kB / 452.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005009/0.1131, allocations: 124 kB / 452.8 MB, free: 10.08 MB / 334.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: 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 (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.0009782/0.1141, allocations: 1.052 MB / 453.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 4.382e-05/0.1141, allocations: 0 / 453.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1141, allocations: 0 / 453.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.555e-06/0.1141, allocations: 7.938 kB / 453.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.1145, allocations: 451.7 kB / 454.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003978/0.1149, allocations: 234 kB / 454.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.1151, allocations: 0.6729 MB / 455.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.981e-06/0.1151, allocations: 7.938 kB / 455.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.1151, allocations: 7.438 kB / 455.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1151, allocations: 0 / 455.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.1378, allocations: 3.937 MB / 459.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.86/7.998, allocations: 8.047 kB / 459.2 MB, free: 3.645 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_3_2_3_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.TestNonlinear.pipe 2>&1)