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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007409/0.0007409, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007623/0.0007623, allocations: 165.9 kB / 22.45 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8841/0.8841, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.009758/0.009758, allocations: 2.252 MB / 261.5 MB, free: 10.97 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 4 kB / 385.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.185e-05/2.421e-05, allocations: 6.281 kB / 385.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.002389/0.002413, allocations: 1.558 MB / 386.9 MB, free: 9.625 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.00358, allocations: 1.134 MB / 388 MB, free: 8.484 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.003643, allocations: 7.875 kB / 388 MB, free: 8.477 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:61:3-84:14:writable] Warning: Pure function 'ExternData.INIFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.003929, allocations: 27.91 kB / 388 MB, free: 8.449 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000335/0.004264, allocations: 103.4 kB / 388.1 MB, free: 8.348 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.309e-05/0.004297, allocations: 19.91 kB / 388.2 MB, free: 8.328 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.809e-05/0.004355, allocations: 27.92 kB / 388.2 MB, free: 8.301 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.032e-05/0.004446, allocations: 11.98 kB / 388.2 MB, free: 8.289 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.598e-05/0.004492, allocations: 15.94 kB / 388.2 MB, free: 8.273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.577e-05/0.004567, allocations: 19.91 kB / 388.2 MB, free: 8.254 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.00458, allocations: 4 kB / 388.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.004708, allocations: 103.8 kB / 388.3 MB, free: 8.148 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.004718, allocations: 0 / 388.3 MB, free: 8.148 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.9e-05/0.004737, allocations: 15.94 kB / 388.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.004918, allocations: 139.6 kB / 388.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.004919, allocations: 0 / 388.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.00492, allocations: 0 / 388.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.004924, allocations: 0 / 388.5 MB, free: 7.996 MB / 314.7 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.0003523/0.005276, allocations: 305.9 kB / 388.8 MB, free: 7.668 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.005316, allocations: 12.02 kB / 388.8 MB, free: 7.656 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.547e-05/0.005351, allocations: 30.75 kB / 388.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.267e-05/0.005374, allocations: 4.938 kB / 388.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.005525, allocations: 129.7 kB / 389 MB, free: 7.461 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.005532, allocations: 384 / 389 MB, free: 7.461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-06/0.005541, allocations: 4.375 kB / 389 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.00565, allocations: 50.19 kB / 389 MB, free: 7.402 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.005657, allocations: 192 / 389 MB, free: 7.402 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.005667, allocations: 3.938 kB / 389 MB, free: 7.398 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.005671, allocations: 0 / 389 MB, free: 7.398 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.472e-05/0.005726, allocations: 19.98 kB / 389 MB, free: 7.379 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002604/0.005986, allocations: 232 kB / 389.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.006131, allocations: 58.5 kB / 389.3 MB, free: 7.043 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.001e-05/0.006161, allocations: 12.95 kB / 389.3 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.006178, allocations: 3.984 kB / 389.3 MB, free: 7.023 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.006194, allocations: 30.56 kB / 389.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of pre-optimization done (n=3): time 6.92e-07/0.006195, allocations: 0 / 389.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001793/0.006374, allocations: 65.67 kB / 389.4 MB, free: 6.914 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001694/0.006544, allocations: 55.34 kB / 389.5 MB, free: 6.848 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.682e-05/0.006621, allocations: 121.8 kB / 389.6 MB, free: 6.719 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.00663, allocations: 25.7 kB / 389.6 MB, free: 6.688 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.342e-05/0.006663, allocations: 88.14 kB / 389.7 MB, free: 6.598 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.006682, allocations: 19.83 kB / 389.7 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.006707, allocations: 17.72 kB / 389.7 MB, free: 6.555 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.562e-05/0.006782, allocations: 310.8 kB / 390.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.258e-05/0.006805, allocations: 11.98 kB / 390.1 MB, free: 6.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.895e-05/0.006824, allocations: 8 kB / 390.1 MB, free: 6.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.301e-05/0.006867, allocations: 29.11 kB / 390.1 MB, free: 6.191 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.006869, allocations: 7.875 kB / 390.1 MB, free: 6.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.963e-05/0.006939, allocations: 69.61 kB / 390.2 MB, free: 6.109 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.00695, allocations: 4 kB / 390.2 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.006954, allocations: 0 / 390.2 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.006965, allocations: 0 / 390.2 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.754e-05/0.006993, allocations: 8 kB / 390.2 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.006999, allocations: 3.984 kB / 390.2 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.729e-05/0.007017, allocations: 3.953 kB / 390.2 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.007022, allocations: 4 kB / 390.2 MB, free: 6.086 MB / 314.7 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.301e-05/0.007075, allocations: 109.8 kB / 390.3 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.007091, allocations: 8 kB / 390.3 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.864e-05/0.007109, allocations: 8 kB / 390.3 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.007111, allocations: 0 / 390.3 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.007115, allocations: 0 / 390.3 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.007119, allocations: 4 kB / 390.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.007233, allocations: 148.7 kB / 390.5 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.007234, allocations: 0 / 390.5 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-05/0.007251, allocations: 4 kB / 390.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.007252, allocations: 0 / 390.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.007258, allocations: 0 / 390.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.007258, allocations: 0 / 390.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.007259, allocations: 4 kB / 390.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.624e-05/0.007355, allocations: 163.4 kB / 390.6 MB, free: 5.574 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.042e-05/0.007366, allocations: 4 kB / 390.6 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.007376, allocations: 3.984 kB / 390.6 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.999e-05/0.007406, allocations: 4 kB / 390.6 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.007418, allocations: 0 / 390.6 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.00742, allocations: 0 / 390.6 MB, free: 5.562 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.014e-05/0.00746, allocations: 99.58 kB / 390.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00746, allocations: 0 / 390.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001987/0.007659, allocations: 35.86 kB / 390.8 MB, free: 5.43 MB / 314.7 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.0006828/0.008342, allocations: 0.906 MB / 391.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.026e-05/0.008432, allocations: 23.98 kB / 391.7 MB, free: 4.551 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.008433, allocations: 0 / 391.7 MB, free: 4.551 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.021e-05/0.008454, allocations: 15.98 kB / 391.7 MB, free: 4.535 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.008647, allocations: 8.188 kB / 391.7 MB, free: 4.527 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008747/0.009522, allocations: 1.311 MB / 393 MB, free: 3.133 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.009855, allocations: 67.33 kB / 393.1 MB, free: 3.047 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.523e-05/0.00988, allocations: 4.25 kB / 393.1 MB, free: 3.043 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.875e-05/0.009919, allocations: 20.48 kB / 393.1 MB, free: 3.023 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.009919, allocations: 3.938 kB / 393.1 MB, free: 3.02 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01545/0.02537, allocations: 3.257 MB / 396.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.583/6.609, allocations: 10.75 kB / 396.4 MB, free: 15.79 MB / 330.7 MB " [Timeout remaining time 653] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_INITest.fmu > ExternData_ExternData.Examples.INITest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.235975877381861] Failed to read output from testmodel.py, exit status != 0: 6.6918014138937 6.700496264 6.69383465 Calling exit ...