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.00161/0.00161, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001793/0.001793, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1088/0.1088, allocations: 2.93 MB / 293 MB, free: 3.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.84 kB / 354.3 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07768/0.07889, allocations: 50.34 MB / 404.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.001764/0.08068, allocations: 0.8087 MB / 405.4 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007474/0.08145, allocations: 0.719 MB / 406.2 MB, free: 76 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.246e-05/0.08148, allocations: 0 / 406.2 MB, free: 76 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.08164, allocations: 23.92 kB / 406.2 MB, free: 52 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.708e-05/0.08174, allocations: 19.92 kB / 406.2 MB, free: 32 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.127e-06/0.08176, allocations: 7.938 kB / 406.2 MB, free: 24 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 3.563e-05/0.0818, allocations: 15.88 kB / 406.2 MB, free: 8 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.264e-05/0.08185, allocations: 12.03 kB / 406.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.415e-05/0.08187, allocations: 4 kB / 406.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.298e-05/0.08195, allocations: 15.92 kB / 406.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.163e-06/0.08197, allocations: 0 / 406.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.621e-05/0.08201, allocations: 16 kB / 406.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-06/0.08202, allocations: 7.984 kB / 406.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.502e-05/0.08204, allocations: 3.938 kB / 406.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.407e-05/0.08212, allocations: 35.84 kB / 406.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.08213, allocations: 0 / 406.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.08213, allocations: 0 / 406.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.925e-06/0.08214, allocations: 0 / 406.3 MB, free: 15.91 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000241/0.08239, allocations: 343.7 kB / 406.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.669e-05/0.08242, allocations: 11.89 kB / 406.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.067e-05/0.08245, allocations: 34.73 kB / 406.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.594e-05/0.08247, allocations: 0.9375 kB / 406.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.818e-05/0.08257, allocations: 172.3 kB / 406.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-06/0.08258, allocations: 384 / 406.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.662e-06/0.0826, allocations: 4.375 kB / 406.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.991e-05/0.08266, allocations: 51.97 kB / 406.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-06/0.08267, allocations: 3.938 kB / 406.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.052e-06/0.08268, allocations: 0 / 406.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-06/0.08269, allocations: 3.938 kB / 406.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.126e-05/0.0827, allocations: 0 / 406.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002454/0.08295, allocations: 483.6 kB / 407.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.494e-05/0.08302, allocations: 181 kB / 407.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.58e-05/0.08305, allocations: 80.17 kB / 407.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.08307, allocations: 79.28 kB / 407.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.08311, allocations: 105.8 kB / 407.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.08312, allocations: 0 / 407.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.223e-05/0.08317, allocations: 33.61 kB / 407.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.08322, allocations: 134.6 kB / 408 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.938e-05/0.0833, allocations: 113.8 kB / 408.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.188e-06/0.08332, allocations: 29.69 kB / 408.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.786e-05/0.08335, allocations: 88.14 kB / 408.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.042e-06/0.08336, allocations: 0 / 408.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/0.08338, allocations: 9.719 kB / 408.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.687e-05/0.08346, allocations: 310.8 kB / 408.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.945e-06/0.08347, allocations: 4 kB / 408.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.893e-06/0.08347, allocations: 4 kB / 408.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.94e-05/0.0835, allocations: 79.22 kB / 408.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/0.08352, allocations: 79.22 kB / 408.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.168e-05/0.08357, allocations: 33.69 kB / 408.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.0836, allocations: 79.28 kB / 408.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.08363, allocations: 83.22 kB / 408.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.248e-05/0.08368, allocations: 150.6 kB / 409 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.928e-05/0.0837, allocations: 87.22 kB / 409.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-05/0.08374, allocations: 150.6 kB / 409.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.084e-05/0.08381, allocations: 79.22 kB / 409.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.08383, allocations: 83.16 kB / 409.4 MB, free: 12.54 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: 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 8.553e-05/0.08392, allocations: 272.3 kB / 409.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.568e-05/0.08397, allocations: 105 kB / 409.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.875e-05/0.08402, allocations: 112.5 kB / 409.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.999e-05/0.08406, allocations: 176.3 kB / 410.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.623e-05/0.08411, allocations: 180.2 kB / 410.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-05/0.08416, allocations: 188.2 kB / 410.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.08434, allocations: 417.2 kB / 410.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.487e-05/0.08437, allocations: 104.9 kB / 410.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.033e-05/0.08441, allocations: 101 kB / 411 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.185e-05/0.08446, allocations: 180.2 kB / 411.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.766e-05/0.08451, allocations: 184.2 kB / 411.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.365e-05/0.08456, allocations: 180.5 kB / 411.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.45e-05/0.0846, allocations: 184.2 kB / 411.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.08471, allocations: 315.6 kB / 412.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.883e-05/0.08478, allocations: 186.1 kB / 412.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.238e-05/0.08484, allocations: 180.3 kB / 412.4 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.354e-05/0.0849, allocations: 104.9 kB / 412.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.08496, allocations: 184.2 kB / 412.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.08499, allocations: 112.9 kB / 412.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.79e-05/0.08504, allocations: 87.28 kB / 412.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.08505, allocations: 0 / 412.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.08528, allocations: 7.984 kB / 412.9 MB, free: 8.828 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: 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.0004525/0.08574, allocations: 0.8723 MB / 413.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 2.189e-05/0.08577, allocations: 0 / 413.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.08578, allocations: 3.938 kB / 413.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.152e-06/0.08579, allocations: 4 kB / 413.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.08613, allocations: 463.7 kB / 414.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008672/0.08701, allocations: 1.618 MB / 415.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.08719, allocations: 0.6805 MB / 416.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.279e-05/0.08721, allocations: 0 / 416.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.08724, allocations: 11.52 kB / 416.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08725, allocations: 0 / 416.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.324/1.411, allocations: 1.382 MB / 417.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/1.411, allocations: 215.4 kB / 418.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.038/3.45, allocations: 0 / 418.1 MB, free: 3.535 MB / 350.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)