Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.SSVTest.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.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",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.005374/0.005374, allocations: 102 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.001245/0.001245, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01272/0.01272, allocations: 2.965 MB / 293.5 MB, free: 11.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 59.91 kB / 405.8 MB, free: 29.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08595/0.08792, allocations: 50.34 MB / 456.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.SSVTest): time 0.002678/0.09065, allocations: 1.544 MB / 457.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009608/0.09163, allocations: 0.8011 MB / 458.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.09167, allocations: 0 / 458.4 MB, free: 8.629 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:165:3-189:14:writable] Warning: Pure function 'ExternData.SSVFile' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.000307/0.09199, allocations: 31.84 kB / 458.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.09213, allocations: 35.84 kB / 458.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.363e-05/0.09216, allocations: 0 / 458.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.168e-05/0.09225, allocations: 39.84 kB / 458.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.054e-05/0.09233, allocations: 18.8 kB / 458.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.978e-05/0.09238, allocations: 4 kB / 458.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.09249, allocations: 15.92 kB / 458.6 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.09251, allocations: 4 kB / 458.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.408e-05/0.09259, allocations: 27.97 kB / 458.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.09261, allocations: 7.938 kB / 458.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.359e-05/0.09264, allocations: 15.88 kB / 458.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.09276, allocations: 51.81 kB / 458.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.09277, allocations: 0 / 458.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09277, allocations: 0 / 458.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.09279, allocations: 4 kB / 458.7 MB, free: 8.379 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003815/0.09317, allocations: 344 kB / 459 MB, free: 7.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.09322, allocations: 11.89 kB / 459 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.007e-05/0.09325, allocations: 34.75 kB / 459.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.09328, allocations: 4.844 kB / 459.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.09343, allocations: 176.6 kB / 459.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.314e-06/0.09345, allocations: 384 / 459.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.09348, allocations: 384 / 459.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.09359, allocations: 46.23 kB / 459.3 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.09361, allocations: 7.938 kB / 459.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.09363, allocations: 0 / 459.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.09363, allocations: 7.875 kB / 459.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.442e-05/0.09371, allocations: 15.98 kB / 459.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002943/0.09401, allocations: 248.9 kB / 459.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.181e-05/0.0941, allocations: 30.5 kB / 459.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.491e-05/0.09415, allocations: 20.92 kB / 459.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.09417, allocations: 0 / 459.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.0942, allocations: 38.48 kB / 459.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.0942, allocations: 0 / 459.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001997/0.09441, allocations: 53.69 kB / 459.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.09445, allocations: 51.41 kB / 459.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.577e-05/0.09456, allocations: 118 kB / 459.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.09457, allocations: 25.7 kB / 459.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.09462, allocations: 92.12 kB / 460 MB, free: 6.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.09464, allocations: 3.906 kB / 460 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.09468, allocations: 9.719 kB / 460 MB, free: 6.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.09479, allocations: 318.8 kB / 460.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.7e-05/0.09483, allocations: 7.984 kB / 460.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.066e-05/0.09487, allocations: 8 kB / 460.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.529e-05/0.09494, allocations: 28.78 kB / 460.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.09495, allocations: 3.938 kB / 460.4 MB, free: 6.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001039/0.09506, allocations: 49.69 kB / 460.4 MB, free: 6.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.09508, allocations: 4 kB / 460.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.09508, allocations: 0 / 460.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.0951, allocations: 0 / 460.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.781e-05/0.09517, allocations: 7.984 kB / 460.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.09519, allocations: 8.094 kB / 460.4 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.195e-05/0.09522, allocations: 7.906 kB / 460.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-06/0.09524, allocations: 3.938 kB / 460.4 MB, free: 6.391 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 (2): * Single equations (assignments): 2 * 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 7.102e-05/0.09531, allocations: 118.4 kB / 460.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.09534, allocations: 0 / 460.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.891e-05/0.09537, allocations: 7.469 kB / 460.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.09537, allocations: 0 / 460.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.09538, allocations: 4 kB / 460.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.09539, allocations: 3.984 kB / 460.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.09556, allocations: 165.6 kB / 460.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.09556, allocations: 0 / 460.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.214e-05/0.0956, allocations: 7.938 kB / 460.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.09561, allocations: 3.984 kB / 460.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.09562, allocations: 0 / 460.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.09563, allocations: 4 kB / 460.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.09563, allocations: 0 / 460.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.0958, allocations: 151.4 kB / 460.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.836e-05/0.09584, allocations: 77.11 kB / 461 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.09586, allocations: 0 / 461 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.929e-05/0.09593, allocations: 7.984 kB / 461 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.471e-05/0.09596, allocations: 0 / 461 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.09596, allocations: 0 / 461 MB, free: 5.754 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.292e-05/0.09603, allocations: 99.2 kB / 461.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09604, allocations: 0 / 461.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002231/0.09626, allocations: 15.94 kB / 461.1 MB, free: 5.641 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 (2): * Single equations (assignments): 2 * 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.0008155/0.09709, allocations: 0.7766 MB / 461.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.09722, allocations: 27.98 kB / 461.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.09723, allocations: 3.938 kB / 461.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.036e-05/0.09728, allocations: 15.92 kB / 461.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.09753, allocations: 4 kB / 461.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.09869, allocations: 1.237 MB / 463.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.09897, allocations: 0.6805 MB / 463.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.522e-05/0.09901, allocations: 8 kB / 463.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.842e-05/0.09907, allocations: 19.42 kB / 463.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09908, allocations: 0 / 463.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.1176, allocations: 1.774 MB / 465.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.558, allocations: 16.47 kB / 465.7 MB, free: 1.055 MB / 334.1 MB (rm -f ExternData_ExternData.Examples.SSVTest.pipe ; mkfifo ExternData_ExternData.Examples.SSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.SSVTest.pipe >> ../files/ExternData_ExternData.Examples.SSVTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_SSVTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_SSVTest.fmu > ExternData_ExternData.Examples.SSVTest.pipe 2>&1)