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.006186/0.006186, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001225/0.001225, allocations: 189.6 kB / 16.67 MB, free: 5.969 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1433/0.1433, allocations: 2.925 MB / 293.5 MB, free: 3.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 67.89 kB / 405.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2693, allocations: 50.33 MB / 456.1 MB, free: 27.99 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.001819/0.2711, allocations: 0.757 MB / 456.8 MB, free: 27.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007639/0.2719, allocations: 0.735 MB / 457.6 MB, free: 27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.722e-05/0.272, allocations: 0 / 457.6 MB, free: 27 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.0002313/0.2722, allocations: 30.38 kB / 457.6 MB, free: 26.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.2723, allocations: 21.39 kB / 457.6 MB, free: 26.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.116e-05/0.2724, allocations: 0 / 457.6 MB, free: 26.97 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.704e-05/0.2724, allocations: 18.05 kB / 457.7 MB, free: 26.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.986e-05/0.2725, allocations: 14.47 kB / 457.7 MB, free: 26.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.157e-05/0.2725, allocations: 10.23 kB / 457.7 MB, free: 26.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2726, allocations: 13.91 kB / 457.7 MB, free: 26.94 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.235e-06/0.2726, allocations: 0 / 457.7 MB, free: 26.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.573e-05/0.2727, allocations: 17.75 kB / 457.7 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.2727, allocations: 7.266 kB / 457.7 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.978e-05/0.2727, allocations: 11.34 kB / 457.7 MB, free: 26.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.579e-05/0.2728, allocations: 26.47 kB / 457.8 MB, free: 26.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2728, allocations: 3.188 kB / 457.8 MB, free: 26.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2728, allocations: 0 / 457.8 MB, free: 26.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2728, allocations: 7.938 kB / 457.8 MB, free: 26.9 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.0002769/0.2731, allocations: 332.5 kB / 458.1 MB, free: 26.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2732, allocations: 13.48 kB / 458.1 MB, free: 26.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.491e-05/0.2732, allocations: 33.81 kB / 458.1 MB, free: 26.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.313e-05/0.2732, allocations: 0.9375 kB / 458.1 MB, free: 26.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.2733, allocations: 183.1 kB / 458.3 MB, free: 26.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.2734, allocations: 384 / 458.3 MB, free: 26.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.171e-06/0.2734, allocations: 384 / 458.3 MB, free: 26.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.462e-05/0.2734, allocations: 46.86 kB / 458.4 MB, free: 26.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.2735, allocations: 3.938 kB / 458.4 MB, free: 26.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-06/0.2735, allocations: 0 / 458.4 MB, free: 26.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2735, allocations: 0 / 458.4 MB, free: 26.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.75e-05/0.2735, allocations: 11.12 kB / 458.4 MB, free: 26.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002333/0.2737, allocations: 479.8 kB / 458.8 MB, free: 25.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.508e-05/0.2738, allocations: 176.4 kB / 459 MB, free: 25.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.2738, allocations: 80.14 kB / 459.1 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.2738, allocations: 75.28 kB / 459.2 MB, free: 25.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.2739, allocations: 105.8 kB / 459.3 MB, free: 25.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.2739, allocations: 0 / 459.3 MB, free: 25.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.266e-05/0.2739, allocations: 32.89 kB / 459.3 MB, free: 25.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.274, allocations: 134.6 kB / 459.4 MB, free: 25.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.205e-05/0.2741, allocations: 121 kB / 459.6 MB, free: 24.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-06/0.2741, allocations: 25.7 kB / 459.6 MB, free: 24.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.938e-05/0.2741, allocations: 87.42 kB / 459.7 MB, free: 24.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.413e-06/0.2741, allocations: 0 / 459.7 MB, free: 24.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.566e-05/0.2741, allocations: 9.719 kB / 459.7 MB, free: 24.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.363e-05/0.2742, allocations: 322.2 kB / 460 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.098e-06/0.2742, allocations: 0 / 460 MB, free: 24.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.946e-06/0.2742, allocations: 0 / 460 MB, free: 24.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.282e-05/0.2742, allocations: 82.5 kB / 460.1 MB, free: 24.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.2742, allocations: 75.28 kB / 460.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.624e-05/0.2743, allocations: 29.05 kB / 460.2 MB, free: 24.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2743, allocations: 85.66 kB / 460.3 MB, free: 24.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.2743, allocations: 79.22 kB / 460.3 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.107e-05/0.2743, allocations: 154.6 kB / 460.5 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.179e-05/0.2744, allocations: 86.44 kB / 460.6 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.862e-05/0.2744, allocations: 154.1 kB / 460.7 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.154e-05/0.2744, allocations: 75.28 kB / 460.8 MB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.2745, allocations: 83.22 kB / 460.9 MB, free: 23.64 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 5.681e-05/0.2745, allocations: 269.1 kB / 461.1 MB, free: 23.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.2746, allocations: 104.5 kB / 461.2 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.2746, allocations: 111.9 kB / 461.3 MB, free: 23.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.512e-05/0.2746, allocations: 191.8 kB / 461.5 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/0.2747, allocations: 176.3 kB / 461.7 MB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.2747, allocations: 180.2 kB / 461.9 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.2748, allocations: 415.4 kB / 462.3 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.2748, allocations: 107.9 kB / 462.4 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.337e-05/0.2749, allocations: 101 kB / 462.5 MB, free: 21.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.2e-05/0.2749, allocations: 176.3 kB / 462.7 MB, free: 21.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.2749, allocations: 186.8 kB / 462.8 MB, free: 21.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.3e-05/0.275, allocations: 180.3 kB / 463 MB, free: 21.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.296e-05/0.275, allocations: 184.2 kB / 463.2 MB, free: 21.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.414e-05/0.2751, allocations: 313.5 kB / 463.5 MB, free: 20.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.2751, allocations: 182.1 kB / 463.7 MB, free: 20.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.2751, allocations: 179.6 kB / 463.9 MB, free: 20.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.829e-05/0.2752, allocations: 112.3 kB / 464 MB, free: 20.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.2752, allocations: 176.3 kB / 464.1 MB, free: 20.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.2753, allocations: 112.9 kB / 464.3 MB, free: 20.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.924e-05/0.2753, allocations: 101 kB / 464.4 MB, free: 20 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2753, allocations: 0 / 464.4 MB, free: 20 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002575/0.2756, allocations: 3.375 kB / 464.4 MB, free: 20 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.000436/0.276, allocations: 0.8797 MB / 465.2 MB, free: 19.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.93e-05/0.2761, allocations: 3.438 kB / 465.2 MB, free: 19.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2761, allocations: 0 / 465.2 MB, free: 19.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.864e-06/0.2761, allocations: 3.938 kB / 465.2 MB, free: 19.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.2765, allocations: 466.2 kB / 465.7 MB, free: 18.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008139/0.2773, allocations: 1.603 MB / 467.3 MB, free: 17.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.72e-05/0.2774, allocations: 0.6829 MB / 468 MB, free: 16.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.029e-05/0.2774, allocations: 6.422 kB / 468 MB, free: 16.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.2775, allocations: 10.44 kB / 468 MB, free: 16.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2775, allocations: 0 / 468 MB, free: 16.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.2963, allocations: 1.504 MB / 469.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.453/7.749, allocations: 6.438 kB / 469.5 MB, free: 15.91 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)