Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.INITest.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.INITest,fileNamePrefix="ExternData_ExternData_Examples_INITest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.INITest,fileNamePrefix="ExternData_ExternData_Examples_INITest",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.007537/0.007537, allocations: 96.11 kB / 15.73 MB, free: 6.039 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.001298/0.001298, allocations: 201.1 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1423/0.1423, allocations: 2.927 MB / 293.5 MB, free: 3.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.91 kB / 405.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3307, allocations: 50.34 MB / 456.1 MB, free: 28.01 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.003369/0.3341, allocations: 1.55 MB / 457.7 MB, free: 26.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.3357, allocations: 1.014 MB / 458.7 MB, free: 26.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.017e-05/0.3358, allocations: 3 kB / 458.7 MB, free: 26.23 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:79:3-102:14:writable] Warning: Pure function 'ExternData.INIFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.3361, allocations: 32.03 kB / 458.7 MB, free: 26.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004706/0.3366, allocations: 110.7 kB / 458.8 MB, free: 26.15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.73e-05/0.3366, allocations: 7.938 kB / 458.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.775e-05/0.3367, allocations: 27.86 kB / 458.8 MB, free: 26.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3368, allocations: 13.11 kB / 458.9 MB, free: 26.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.814e-05/0.3369, allocations: 17.33 kB / 458.9 MB, free: 26.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.3371, allocations: 25.52 kB / 458.9 MB, free: 26.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.3371, allocations: 2.812 kB / 458.9 MB, free: 26.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.3373, allocations: 108.9 kB / 459 MB, free: 26.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.3373, allocations: 11.41 kB / 459 MB, free: 26.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.784e-05/0.3374, allocations: 11.16 kB / 459 MB, free: 26.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.3377, allocations: 126 kB / 459.2 MB, free: 26.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.3377, allocations: 4 kB / 459.2 MB, free: 26.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3377, allocations: 3.281 kB / 459.2 MB, free: 26.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.3377, allocations: 0 / 459.2 MB, free: 26.01 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000528/0.3383, allocations: 386.1 kB / 459.5 MB, free: 25.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3383, allocations: 13.14 kB / 459.6 MB, free: 25.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.359e-05/0.3384, allocations: 34.75 kB / 459.6 MB, free: 25.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.3384, allocations: 3.781 kB / 459.6 MB, free: 25.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.3387, allocations: 181.6 kB / 459.8 MB, free: 25.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.3387, allocations: 384 / 459.8 MB, free: 25.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.3387, allocations: 3.312 kB / 459.8 MB, free: 25.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.3388, allocations: 50.09 kB / 459.8 MB, free: 25.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3389, allocations: 4 kB / 459.8 MB, free: 25.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.3389, allocations: 0 / 459.8 MB, free: 25.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3389, allocations: 0 / 459.8 MB, free: 25.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.525e-05/0.339, allocations: 23.69 kB / 459.8 MB, free: 25.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003381/0.3393, allocations: 270.2 kB / 460.1 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.3395, allocations: 43.22 kB / 460.2 MB, free: 25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.325e-05/0.3396, allocations: 26.25 kB / 460.2 MB, free: 24.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.3396, allocations: 0 / 460.2 MB, free: 24.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.3396, allocations: 33.53 kB / 460.2 MB, free: 24.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.3396, allocations: 0 / 460.2 MB, free: 24.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002357/0.3399, allocations: 65.55 kB / 460.3 MB, free: 24.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.3399, allocations: 51.41 kB / 460.3 MB, free: 24.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.956e-05/0.34, allocations: 127.7 kB / 460.5 MB, free: 24.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.34, allocations: 25.7 kB / 460.5 MB, free: 24.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.21e-05/0.3401, allocations: 86.73 kB / 460.6 MB, free: 24.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.3401, allocations: 11.38 kB / 460.6 MB, free: 24.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.3401, allocations: 12.88 kB / 460.6 MB, free: 24.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.201e-05/0.3402, allocations: 325.6 kB / 460.9 MB, free: 24.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.004e-05/0.3402, allocations: 9.062 kB / 460.9 MB, free: 24.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.08e-05/0.3403, allocations: 13.22 kB / 460.9 MB, free: 24.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.543e-05/0.3403, allocations: 33 kB / 461 MB, free: 24.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3403, allocations: 0 / 461 MB, free: 24.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001056/0.3405, allocations: 48.83 kB / 461 MB, free: 24.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3405, allocations: 6.531 kB / 461 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3405, allocations: 3.375 kB / 461 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.349e-05/0.3405, allocations: 3.938 kB / 461 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.679e-05/0.3406, allocations: 6.469 kB / 461 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.3406, allocations: 3.938 kB / 461 MB, free: 24.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.316e-05/0.3406, allocations: 11.28 kB / 461 MB, free: 24.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.3406, allocations: 0 / 461 MB, free: 24.18 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 (3): * Single equations (assignments): 3 * 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.598e-05/0.3407, allocations: 118.1 kB / 461.2 MB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.3407, allocations: 3.953 kB / 461.2 MB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.3408, allocations: 11 kB / 461.2 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3408, allocations: 0 / 461.2 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3408, allocations: 0 / 461.2 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3408, allocations: 0 / 461.2 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.3409, allocations: 177.6 kB / 461.3 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3409, allocations: 0 / 461.3 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.341, allocations: 7.188 kB / 461.4 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.341, allocations: 3.219 kB / 461.4 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.341, allocations: 0 / 461.4 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.341, allocations: 0 / 461.4 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.341, allocations: 0 / 461.4 MB, free: 23.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.3411, allocations: 157.7 kB / 461.5 MB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.672e-05/0.3412, allocations: 88.42 kB / 461.6 MB, free: 23.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.3412, allocations: 4 kB / 461.6 MB, free: 23.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.068e-05/0.3413, allocations: 3.094 kB / 461.6 MB, free: 23.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/0.3413, allocations: 0 / 461.6 MB, free: 23.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.3413, allocations: 3.594 kB / 461.6 MB, free: 23.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.384e-05/0.3414, allocations: 96.55 kB / 461.7 MB, free: 23.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3414, allocations: 0 / 461.7 MB, free: 23.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.3416, allocations: 38.09 kB / 461.7 MB, free: 23.5 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 (3): * Single equations (assignments): 3 * 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.000918/0.3426, allocations: 0.9135 MB / 462.7 MB, free: 22.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.3427, allocations: 30.94 kB / 462.7 MB, free: 22.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3427, allocations: 0 / 462.7 MB, free: 22.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.857e-05/0.3428, allocations: 10.44 kB / 462.7 MB, free: 22.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.3431, allocations: 15.86 kB / 462.7 MB, free: 22.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3442, allocations: 1.292 MB / 464 MB, free: 21.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.3444, allocations: 0.6823 MB / 464.7 MB, free: 20.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.947e-05/0.3444, allocations: 11.17 kB / 464.7 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.3445, allocations: 21.81 kB / 464.7 MB, free: 20.78 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3445, allocations: 0 / 464.7 MB, free: 20.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.3676, allocations: 2.566 MB / 467.3 MB, free: 20.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.72/8.087, allocations: 7.438 kB / 467.3 MB, free: 20.11 MB / 366.1 MB (rm -f ExternData_ExternData.Examples.INITest.pipe ; mkfifo ExternData_ExternData.Examples.INITest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.INITest.pipe >> ../files/ExternData_ExternData.Examples.INITest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.INITest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_INITest.fmu > ExternData_ExternData.Examples.INITest.pipe 2>&1)