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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.00694/0.00694, allocations: 97.34 kB / 15.73 MB, free: 6.055 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.001411/0.001411, allocations: 195.4 kB / 16.68 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01299/0.01299, allocations: 2.942 MB / 293.5 MB, free: 11.78 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 63.88 kB / 405.8 MB, free: 29.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09336/0.09517, allocations: 50.34 MB / 456.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002076/0.09729, allocations: 0.7426 MB / 456.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.09835, allocations: 0.7387 MB / 457.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.0984, allocations: 0 / 457.6 MB, free: 9.496 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0002255/0.09863, allocations: 23.92 kB / 457.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.09882, allocations: 27.84 kB / 457.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.005e-05/0.09884, allocations: 0 / 457.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.397e-05/0.0989, allocations: 12 kB / 457.7 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.264e-05/0.09895, allocations: 8 kB / 457.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.552e-05/0.09898, allocations: 19.84 kB / 457.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.09909, allocations: 7.938 kB / 457.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.485e-06/0.09911, allocations: 0 / 457.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.233e-05/0.09916, allocations: 20 kB / 457.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.09918, allocations: 0 / 457.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.485e-05/0.09921, allocations: 11.92 kB / 457.7 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.09932, allocations: 32.12 kB / 457.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.09933, allocations: 0 / 457.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09934, allocations: 7.938 kB / 457.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.09935, allocations: 4 kB / 457.8 MB, free: 9.324 MB / 334.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.0003774/0.09974, allocations: 339.3 kB / 458.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.09978, allocations: 11.89 kB / 458.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.081e-05/0.09982, allocations: 34.75 kB / 458.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.09985, allocations: 4.938 kB / 458.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.1001, allocations: 172.3 kB / 458.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.1001, allocations: 384 / 458.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.259e-06/0.1001, allocations: 4.375 kB / 458.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.608e-05/0.1002, allocations: 47.98 kB / 458.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1002, allocations: 3.938 kB / 458.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-06/0.1002, allocations: 0 / 458.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1002, allocations: 0 / 458.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.837e-05/0.1002, allocations: 7.938 kB / 458.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004339/0.1007, allocations: 475.6 kB / 458.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.1008, allocations: 169.1 kB / 459 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.63e-05/0.1009, allocations: 84.08 kB / 459.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.1009, allocations: 79.28 kB / 459.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.101, allocations: 109.8 kB / 459.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.101, allocations: 0 / 459.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.463e-05/0.1011, allocations: 41.64 kB / 459.3 MB, free: 7.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1012, allocations: 126.7 kB / 459.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.1014, allocations: 114.1 kB / 459.5 MB, free: 7.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1014, allocations: 25.7 kB / 459.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.1014, allocations: 84.14 kB / 459.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.292e-06/0.1014, allocations: 0 / 459.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/0.1015, allocations: 13.72 kB / 459.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1016, allocations: 314.8 kB / 460 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.628e-06/0.1016, allocations: 11.88 kB / 460 MB, free: 6.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.765e-06/0.1016, allocations: 0 / 460 MB, free: 6.855 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.1018, allocations: 83.2 kB / 460.1 MB, free: 6.773 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-05/0.1018, allocations: 75.28 kB / 460.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.851e-05/0.1019, allocations: 29.7 kB / 460.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/0.1019, allocations: 79.28 kB / 460.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.309e-05/0.102, allocations: 79.22 kB / 460.3 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.66e-05/0.102, allocations: 162.5 kB / 460.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.134e-05/0.1021, allocations: 79.28 kB / 460.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.684e-05/0.1021, allocations: 158.7 kB / 460.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.305e-05/0.1022, allocations: 83.28 kB / 460.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.532e-05/0.1023, allocations: 83.22 kB / 460.9 MB, free: 5.949 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.0001459/0.1024, allocations: 265 kB / 461.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.123e-05/0.1025, allocations: 113 kB / 461.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.712e-05/0.1026, allocations: 108.5 kB / 461.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.549e-05/0.1027, allocations: 184.2 kB / 461.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.6e-05/0.1027, allocations: 176.3 kB / 461.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.749e-05/0.1028, allocations: 184.2 kB / 461.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.1031, allocations: 413.2 kB / 462.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-05/0.1031, allocations: 101 kB / 462.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.703e-05/0.1032, allocations: 112.9 kB / 462.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.679e-05/0.1033, allocations: 176.3 kB / 462.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.653e-05/0.1034, allocations: 184.2 kB / 462.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.343e-05/0.1034, allocations: 176.3 kB / 463 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.481e-05/0.1035, allocations: 180.3 kB / 463.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.1037, allocations: 315.6 kB / 463.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.12e-05/0.1038, allocations: 186 kB / 463.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.055e-05/0.1039, allocations: 176.3 kB / 463.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1041, allocations: 113 kB / 464 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/0.1041, allocations: 188.2 kB / 464.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.1042, allocations: 101 kB / 464.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.669e-05/0.1043, allocations: 91.27 kB / 464.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1043, allocations: 0 / 464.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1045, allocations: 7.938 kB / 464.3 MB, free: 2.246 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.0008512/0.1054, allocations: 0.889 MB / 465.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 4.772e-05/0.1054, allocations: 0 / 465.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1054, allocations: 0 / 465.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.362e-06/0.1055, allocations: 4 kB / 465.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.1059, allocations: 471.4 kB / 465.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.1073, allocations: 1.598 MB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1076, allocations: 0.6805 MB / 468 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.859e-05/0.1077, allocations: 0 / 468 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.1077, allocations: 19.42 kB / 468 MB, free: 14.49 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1077, allocations: 0 / 468 MB, free: 14.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.1319, allocations: 1.499 MB / 469.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.34, allocations: 0.5312 kB / 469.5 MB, free: 13.06 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)