Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.TIRTest.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/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",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.004748/0.004748, allocations: 101 kB / 15.73 MB, free: 6.469 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.001112/0.001112, allocations: 193.1 kB / 16.67 MB, free: 6.379 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1463/0.1463, allocations: 2.932 MB / 293.5 MB, free: 3.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001402, allocations: 71.89 kB / 405.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2959, allocations: 50.33 MB / 456.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.001927/0.2979, allocations: 0.7463 MB / 456.8 MB, free: 27.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007416/0.2986, allocations: 0.7347 MB / 457.6 MB, free: 26.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.871e-05/0.2987, allocations: 0 / 457.6 MB, free: 26.96 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:313:3-338:14:writable] Warning: Pure function 'ExternData.TIRFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.000266/0.299, allocations: 32.23 kB / 457.6 MB, free: 26.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.872e-05/0.2991, allocations: 24.58 kB / 457.6 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.005e-05/0.2991, allocations: 0 / 457.6 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.084e-05/0.2991, allocations: 14.03 kB / 457.6 MB, free: 26.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.116e-05/0.2992, allocations: 10.97 kB / 457.7 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.107e-05/0.2992, allocations: 14.47 kB / 457.7 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.2993, allocations: 6.75 kB / 457.7 MB, free: 26.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.2993, allocations: 3.219 kB / 457.7 MB, free: 26.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.211e-05/0.2994, allocations: 22.45 kB / 457.7 MB, free: 26.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.03e-05/0.2994, allocations: 10.59 kB / 457.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.2994, allocations: 7.938 kB / 457.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001016/0.2995, allocations: 32.45 kB / 457.8 MB, free: 26.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2996, allocations: 2.844 kB / 457.8 MB, free: 26.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2996, allocations: 0 / 457.8 MB, free: 26.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.2996, allocations: 0 / 457.8 MB, free: 26.86 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002895/0.2999, allocations: 332.5 kB / 458.1 MB, free: 26.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2999, allocations: 12.27 kB / 458.1 MB, free: 26.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.869e-05/0.2999, allocations: 38.12 kB / 458.1 MB, free: 26.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.706e-05/0.3, allocations: 3.938 kB / 458.1 MB, free: 26.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.3001, allocations: 175.4 kB / 458.3 MB, free: 26.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.3001, allocations: 384 / 458.3 MB, free: 26.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.45e-06/0.3001, allocations: 384 / 458.3 MB, free: 26.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.525e-05/0.3002, allocations: 50.38 kB / 458.4 MB, free: 26.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3002, allocations: 3.938 kB / 458.4 MB, free: 26.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.3002, allocations: 7.297 kB / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3002, allocations: 0 / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.554e-05/0.3003, allocations: 4 kB / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002536/0.3005, allocations: 483.8 kB / 458.8 MB, free: 25.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.61e-05/0.3006, allocations: 165.1 kB / 459 MB, free: 25.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.93e-05/0.3006, allocations: 87.14 kB / 459.1 MB, free: 25.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.3006, allocations: 78.7 kB / 459.2 MB, free: 25.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.3006, allocations: 109.8 kB / 459.3 MB, free: 25.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.3006, allocations: 0 / 459.3 MB, free: 25.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.375e-05/0.3007, allocations: 33.02 kB / 459.3 MB, free: 25.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.3008, allocations: 126.7 kB / 459.4 MB, free: 25.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.284e-05/0.3008, allocations: 121.1 kB / 459.5 MB, free: 24.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-06/0.3009, allocations: 29.7 kB / 459.6 MB, free: 24.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.119e-05/0.3009, allocations: 86.83 kB / 459.7 MB, free: 24.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.192e-06/0.3009, allocations: 0 / 459.7 MB, free: 24.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.568e-05/0.3009, allocations: 9.719 kB / 459.7 MB, free: 24.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.487e-05/0.301, allocations: 317.9 kB / 460 MB, free: 24.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.31e-06/0.301, allocations: 0 / 460 MB, free: 24.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.086e-06/0.301, allocations: 0 / 460 MB, free: 24.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.351e-05/0.301, allocations: 79.22 kB / 460.1 MB, free: 24.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.301, allocations: 79.28 kB / 460.1 MB, free: 24.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.887e-05/0.3011, allocations: 32.67 kB / 460.2 MB, free: 24.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3011, allocations: 88.84 kB / 460.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3011, allocations: 75.28 kB / 460.3 MB, free: 24.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.396e-05/0.3011, allocations: 157.9 kB / 460.5 MB, free: 23.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.18e-05/0.3012, allocations: 75.28 kB / 460.6 MB, free: 23.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.255e-05/0.3012, allocations: 154.9 kB / 460.7 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.22e-05/0.3012, allocations: 86.19 kB / 460.8 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.3013, allocations: 75.28 kB / 460.9 MB, free: 23.61 MB / 366.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 6.252e-05/0.3013, allocations: 265.4 kB / 461.1 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.3014, allocations: 108.4 kB / 461.2 MB, free: 23.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.3014, allocations: 111.9 kB / 461.3 MB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.86e-05/0.3014, allocations: 188.3 kB / 461.5 MB, free: 22.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.879e-05/0.3015, allocations: 183.5 kB / 461.7 MB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/0.3015, allocations: 179.5 kB / 461.9 MB, free: 22.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.3016, allocations: 411.9 kB / 462.3 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.3017, allocations: 104.4 kB / 462.4 MB, free: 22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.271e-05/0.3017, allocations: 101 kB / 462.5 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.433e-05/0.3017, allocations: 191.3 kB / 462.7 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.3017, allocations: 176.3 kB / 462.8 MB, free: 21.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-05/0.3018, allocations: 184.2 kB / 463 MB, free: 21.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.47e-05/0.3018, allocations: 182.7 kB / 463.2 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.484e-05/0.3019, allocations: 314.5 kB / 463.5 MB, free: 20.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.3019, allocations: 184.2 kB / 463.7 MB, free: 20.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.302, allocations: 180.2 kB / 463.9 MB, free: 20.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.644e-05/0.302, allocations: 101 kB / 464 MB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.3021, allocations: 183.1 kB / 464.1 MB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.3021, allocations: 124.5 kB / 464.3 MB, free: 20.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.615e-05/0.3021, allocations: 87.91 kB / 464.3 MB, free: 19.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3021, allocations: 0 / 464.3 MB, free: 19.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002622/0.3024, allocations: 9.344 kB / 464.4 MB, free: 19.95 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: 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.000419/0.3028, allocations: 0.8784 MB / 465.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.458e-05/0.3029, allocations: 7.938 kB / 465.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3029, allocations: 0 / 465.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.072e-06/0.3029, allocations: 2.875 kB / 465.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.3033, allocations: 458.7 kB / 465.7 MB, free: 18.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008341/0.3041, allocations: 1.603 MB / 467.3 MB, free: 17.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.932e-05/0.3042, allocations: 0.6904 MB / 468 MB, free: 16.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.813e-05/0.3042, allocations: 3.062 kB / 468 MB, free: 16.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.3043, allocations: 13.64 kB / 468 MB, free: 16.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3043, allocations: 0 / 468 MB, free: 16.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.3244, allocations: 1.505 MB / 469.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.923, allocations: 3.5 kB / 469.5 MB, free: 15.87 MB / 366.1 MB (rm -f ExternData_ExternData.Examples.TIRTest.pipe ; mkfifo ExternData_ExternData.Examples.TIRTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.TIRTest.pipe >> ../files/ExternData_ExternData.Examples.TIRTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_TIRTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_TIRTest.fmu > ExternData_ExternData.Examples.TIRTest.pipe 2>&1)