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.00112/0.00112, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1461/0.1461, allocations: 2.937 MB / 293.3 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 71.88 kB / 354.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09566, allocations: 50.33 MB / 405.1 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.002968/0.09867, allocations: 1.548 MB / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.1, allocations: 1.019 MB / 407.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.848e-05/0.1001, allocations: 0 / 407.7 MB, free: 14.65 MB / 350.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.0002456/0.1004, allocations: 27.8 kB / 407.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003098/0.1007, allocations: 107.5 kB / 407.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.374e-05/0.1007, allocations: 8 kB / 407.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.185e-05/0.1008, allocations: 31.92 kB / 407.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.315e-05/0.1009, allocations: 11.98 kB / 407.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.186e-05/0.1009, allocations: 15.92 kB / 407.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.1011, allocations: 19.92 kB / 407.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.1011, allocations: 4 kB / 407.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.1013, allocations: 111.8 kB / 408 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.391e-05/0.1013, allocations: 7.938 kB / 408 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.1013, allocations: 19.91 kB / 408 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.1016, allocations: 132 kB / 408.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1016, allocations: 0 / 408.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1016, allocations: 0 / 408.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1016, allocations: 0 / 408.2 MB, free: 14.16 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004708/0.1021, allocations: 375.3 kB / 408.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1021, allocations: 15.89 kB / 408.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.1021, allocations: 30.75 kB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.1022, allocations: 16.92 kB / 408.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.1023, allocations: 176.2 kB / 408.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.407e-06/0.1024, allocations: 8.312 kB / 408.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.1024, allocations: 8.375 kB / 408.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.1025, allocations: 45.62 kB / 408.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.1025, allocations: 0 / 408.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.1025, allocations: 0 / 408.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1025, allocations: 0 / 408.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.374e-05/0.1026, allocations: 19.98 kB / 408.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003221/0.103, allocations: 268.9 kB / 409.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.1032, allocations: 46.56 kB / 409.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.408e-05/0.1032, allocations: 20.94 kB / 409.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.1032, allocations: 0 / 409.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.1033, allocations: 30.56 kB / 409.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1033, allocations: 4 kB / 409.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002257/0.1035, allocations: 73.52 kB / 409.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.1035, allocations: 51.41 kB / 409.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.955e-05/0.1036, allocations: 117.8 kB / 409.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1037, allocations: 29.7 kB / 409.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.429e-05/0.1037, allocations: 84.12 kB / 409.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.1037, allocations: 11.91 kB / 409.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.1037, allocations: 13.72 kB / 409.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.878e-05/0.1039, allocations: 326.8 kB / 409.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.997e-05/0.1039, allocations: 4 kB / 409.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.729e-05/0.1039, allocations: 16.17 kB / 409.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.174e-05/0.104, allocations: 28.92 kB / 409.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.104, allocations: 0 / 409.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001169/0.1042, allocations: 57.53 kB / 410 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1042, allocations: 12 kB / 410 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1042, allocations: 0 / 410 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1042, allocations: 0 / 410 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.536e-05/0.1043, allocations: 11.92 kB / 410 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.187e-06/0.1043, allocations: 0 / 410 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.504e-05/0.1043, allocations: 7.938 kB / 410 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-06/0.1043, allocations: 0 / 410 MB, free: 12.06 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 (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 6.968e-05/0.1044, allocations: 113.8 kB / 410.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.1044, allocations: 7.906 kB / 410.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.091e-05/0.1045, allocations: 11.91 kB / 410.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1045, allocations: 4 kB / 410.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1045, allocations: 3.984 kB / 410.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1045, allocations: 0 / 410.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.1047, allocations: 169.6 kB / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1047, allocations: 0 / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.057e-05/0.1047, allocations: 4 kB / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1047, allocations: 0 / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.1047, allocations: 4 kB / 410.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1047, allocations: 7.938 kB / 410.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1048, allocations: 0 / 410.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/0.1049, allocations: 155.5 kB / 410.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.105, allocations: 89.02 kB / 410.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.105, allocations: 0 / 410.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.4e-05/0.1051, allocations: 3.984 kB / 410.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.529e-05/0.1051, allocations: 4 kB / 410.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1051, allocations: 0 / 410.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.549e-05/0.1052, allocations: 99.58 kB / 410.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1052, allocations: 0 / 410.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.1054, allocations: 40 kB / 410.7 MB, free: 11.26 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 (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.0009814/0.1064, allocations: 0.9074 MB / 411.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.1066, allocations: 23.98 kB / 411.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1066, allocations: 0 / 411.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.305e-05/0.1066, allocations: 15.94 kB / 411.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.1069, allocations: 14.23 kB / 411.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.1082, allocations: 1.292 MB / 413 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.1084, allocations: 0.6883 MB / 413.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.424e-05/0.1085, allocations: 0 / 413.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.1085, allocations: 23.42 kB / 413.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1085, allocations: 0 / 413.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.1276, allocations: 2.508 MB / 416.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.371/7.498, allocations: 6.516 kB / 416.2 MB, free: 5.754 MB / 350.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)