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.001479/0.001479, 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.001681/0.001682, allocations: 194.7 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.468/1.468, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.208/0.208, allocations: 2.937 MB / 293.3 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.00146, allocations: 67.89 kB / 354.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1356, allocations: 50.34 MB / 405.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.003646/0.1393, allocations: 1.538 MB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.1412, allocations: 1.016 MB / 407.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1414, allocations: 11.94 kB / 407.7 MB, free: 14.66 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.0003408/0.1417, allocations: 31.84 kB / 407.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005307/0.1422, allocations: 99.58 kB / 407.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.67e-05/0.1423, allocations: 8 kB / 407.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.1424, allocations: 31.86 kB / 407.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.1426, allocations: 11.98 kB / 407.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/0.1427, allocations: 19.92 kB / 407.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.1429, allocations: 19.92 kB / 407.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.1429, allocations: 4 kB / 407.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002906/0.1432, allocations: 107.9 kB / 408 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.281e-05/0.1432, allocations: 15.86 kB / 408 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.365e-05/0.1433, allocations: 11.94 kB / 408 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.1436, allocations: 132 kB / 408.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1436, allocations: 0 / 408.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1436, allocations: 4 kB / 408.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.1437, allocations: 0 / 408.2 MB, free: 14.17 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.0006788/0.1443, allocations: 371.3 kB / 408.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.1444, allocations: 19.89 kB / 408.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.954e-05/0.1445, allocations: 34.75 kB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.98e-05/0.1445, allocations: 0.9375 kB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.1448, allocations: 188.2 kB / 408.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.1448, allocations: 384 / 408.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.1448, allocations: 384 / 408.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.1449, allocations: 53.56 kB / 408.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.145, allocations: 0 / 408.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.145, allocations: 0 / 408.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.145, allocations: 0 / 408.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.132e-05/0.1451, allocations: 23.98 kB / 408.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004402/0.1455, allocations: 264.9 kB / 409.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.1458, allocations: 46.56 kB / 409.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.482e-05/0.1458, allocations: 20.94 kB / 409.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.1459, allocations: 4 kB / 409.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.1459, allocations: 34.5 kB / 409.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.1459, allocations: 0 / 409.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002762/0.1462, allocations: 69.58 kB / 409.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.1463, allocations: 55.34 kB / 409.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.1464, allocations: 113.8 kB / 409.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1464, allocations: 29.7 kB / 409.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.992e-05/0.1465, allocations: 92.12 kB / 409.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.1465, allocations: 7.891 kB / 409.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.1466, allocations: 13.72 kB / 409.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1467, allocations: 318.8 kB / 409.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.742e-05/0.1468, allocations: 15.98 kB / 409.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.539e-05/0.1468, allocations: 11.98 kB / 409.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.702e-05/0.1469, allocations: 25.12 kB / 409.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1469, allocations: 8 kB / 409.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001431/0.1471, allocations: 61.52 kB / 410 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1471, allocations: 4 kB / 410 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1471, allocations: 0 / 410 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1471, allocations: 0 / 410 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.418e-05/0.1472, allocations: 15.98 kB / 410 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1472, allocations: 3.938 kB / 410 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.398e-05/0.1472, allocations: 3.938 kB / 410 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-06/0.1472, allocations: 4 kB / 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 8.522e-05/0.1473, allocations: 113.8 kB / 410.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.1474, allocations: 7.906 kB / 410.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.207e-05/0.1474, allocations: 7.906 kB / 410.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1474, allocations: 0 / 410.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1474, allocations: 0 / 410.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1474, allocations: 0 / 410.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.1476, allocations: 169.6 kB / 410.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1476, allocations: 4 kB / 410.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.1477, allocations: 7.984 kB / 410.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.1477, allocations: 4 kB / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.1477, allocations: 384 / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1477, allocations: 0 / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1477, allocations: 0 / 410.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.148, allocations: 159.4 kB / 410.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/0.148, allocations: 84.95 kB / 410.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.148, allocations: 4 kB / 410.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.863e-05/0.1481, allocations: 4 kB / 410.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.1481, allocations: 3.984 kB / 410.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1482, allocations: 4 kB / 410.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.297e-05/0.1482, allocations: 91.27 kB / 410.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1482, allocations: 0 / 410.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.1485, allocations: 40 kB / 410.7 MB, free: 11.27 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.001109/0.1496, allocations: 0.9053 MB / 411.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.1498, allocations: 27.97 kB / 411.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1498, allocations: 0 / 411.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.223e-05/0.1499, allocations: 11.94 kB / 411.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.1502, allocations: 23.31 kB / 411.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.1517, allocations: 1.295 MB / 413 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.1521, allocations: 0.6844 MB / 413.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.292e-05/0.1521, allocations: 4 kB / 413.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.118e-05/0.1522, allocations: 19.42 kB / 413.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1522, allocations: 4 kB / 413.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.1804, allocations: 2.505 MB / 416.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/7.994, allocations: 10.03 kB / 416.2 MB, free: 5.762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_INITest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_INITest.fmu > ExternData_ExternData.Examples.INITest.pipe 2>&1)