Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput",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.001422/0.001422, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001194/0.001194, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2071/0.2071, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3132, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialOutput): time 0.003992/0.3173, allocations: 3.384 MB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.3201, allocations: 1.546 MB / 0.5232 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004278/0.3206, allocations: 22.22 kB / 0.5233 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005115/0.3211, allocations: 138.8 kB / 0.5234 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005753/0.3217, allocations: 203.9 kB / 0.5236 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.323, allocations: 0.5225 MB / 0.5241 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.3243, allocations: 0.9576 MB / 0.525 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.3247, allocations: 226.9 kB / 0.5253 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005586/0.3253, allocations: 373.1 kB / 0.5256 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005555/0.3259, allocations: 412.1 kB / 0.526 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.326, allocations: 61.91 kB / 0.5261 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002878/0.3263, allocations: 177.9 kB / 0.5262 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002261/0.3265, allocations: 195.8 kB / 0.5264 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003203/0.3268, allocations: 347.5 kB / 0.5268 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.3279, allocations: 0.9173 MB / 0.5276 GB, free: 13.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3279, allocations: 5.375 kB / 0.5277 GB, free: 13.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3279, allocations: 0 / 0.5277 GB, free: 13.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.3279, allocations: 0 / 0.5277 GB, free: 13.32 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002327/0.3302, allocations: 1.192 MB / 0.5288 GB, free: 12.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.3303, allocations: 9.594 kB / 0.5288 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.832e-05/0.3304, allocations: 85.67 kB / 0.5289 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.3305, allocations: 96.39 kB / 0.529 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000971/0.3315, allocations: 0.5832 MB / 0.5296 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.3316, allocations: 45.36 kB / 0.5296 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.3317, allocations: 58.33 kB / 0.5297 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.3328, allocations: 0.6039 MB / 0.5303 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.3328, allocations: 5.625 kB / 0.5303 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.989e-05/0.3329, allocations: 21.25 kB / 0.5303 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.3329, allocations: 19.12 kB / 0.5303 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.334, allocations: 465.4 kB / 0.5307 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003628/0.3376, allocations: 2.645 MB / 0.5333 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.3387, allocations: 0.5038 MB / 0.5338 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005833/0.3393, allocations: 261.3 kB / 0.5341 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.3393, allocations: 5.734 kB / 0.5341 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.3394, allocations: 45.52 kB / 0.5341 GB, free: 8.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.3394, allocations: 0 / 0.5341 GB, free: 8.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.002669/0.3421, allocations: 1.176 MB / 0.5353 GB, free: 7.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.3422, allocations: 141.2 kB / 0.5354 GB, free: 7.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009547/0.3431, allocations: 0.6499 MB / 0.536 GB, free: 7.199 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.989e-05/0.3432, allocations: 35.95 kB / 0.5361 GB, free: 7.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.3435, allocations: 358.6 kB / 0.5364 GB, free: 6.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.3436, allocations: 195.2 kB / 0.5366 GB, free: 6.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.3438, allocations: 115.3 kB / 0.5367 GB, free: 6.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.3439, allocations: 336.2 kB / 0.537 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006795/0.3446, allocations: 284.6 kB / 0.5373 GB, free: 6.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007471/0.3454, allocations: 444 kB / 0.5377 GB, free: 5.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.3468, allocations: 0.7109 MB / 0.5384 GB, free: 5.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3468, allocations: 2.188 kB / 0.5384 GB, free: 5.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001738/0.3485, allocations: 0.8321 MB / 0.5392 GB, free: 4.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3486, allocations: 6.688 kB / 0.5392 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3486, allocations: 4.469 kB / 0.5392 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.3486, allocations: 7.688 kB / 0.5392 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009176/0.3495, allocations: 203.3 kB / 0.5394 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.3495, allocations: 8.156 kB / 0.5395 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.3501, allocations: 85.14 kB / 0.5395 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.3502, allocations: 24.06 kB / 0.5396 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007798/0.351, allocations: 425.6 kB / 0.54 GB, free: 4.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006825/0.3517, allocations: 422.9 kB / 0.5404 GB, free: 4.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001277/0.353, allocations: 0.688 MB / 0.541 GB, free: 3.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.997e-06/0.353, allocations: 5.125 kB / 0.541 GB, free: 3.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=79) (initialization_lambda0): time 0.001601/0.3546, allocations: 0.7997 MB / 0.5418 GB, free: 3.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.3546, allocations: 7.031 kB / 0.5418 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.3546, allocations: 5.406 kB / 0.5418 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.727e-06/0.3546, allocations: 10.88 kB / 0.5418 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008525/0.3555, allocations: 193.3 kB / 0.542 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.3555, allocations: 15.88 kB / 0.542 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005507/0.3561, allocations: 83.62 kB / 0.5421 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.937e-05/0.3561, allocations: 31.98 kB / 0.5422 GB, free: 3.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 1 * 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 0.0002031/0.3563, allocations: 216 kB / 0.5424 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.3565, allocations: 79.48 kB / 0.5424 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.3567, allocations: 90.91 kB / 0.5425 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3567, allocations: 7.938 kB / 0.5425 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3567, allocations: 4 kB / 0.5425 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3567, allocations: 3.984 kB / 0.5425 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.3587, allocations: 1.268 MB / 0.5438 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3588, allocations: 0 / 0.5438 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006815/0.3594, allocations: 111.9 kB / 0.5439 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3595, allocations: 0 / 0.5439 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.567e-05/0.3595, allocations: 19.98 kB / 0.5439 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.3595, allocations: 4 kB / 0.5439 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3595, allocations: 0 / 0.5439 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.3616, allocations: 1.173 MB / 0.5451 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.3619, allocations: 200.5 kB / 0.5452 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.748e-05/0.362, allocations: 16 kB / 0.5453 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005653/0.3626, allocations: 47.94 kB / 0.5453 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.3627, allocations: 39.95 kB / 0.5453 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.3627, allocations: 15.98 kB / 0.5454 GB, free: 15.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006455/0.3634, allocations: 459 kB / 0.5458 GB, free: 15.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3634, allocations: 0 / 0.5458 GB, free: 15.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009233/0.3643, allocations: 219.9 kB / 0.546 GB, free: 15.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * 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 (46): * Single equations (assignments): 46 * 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.002546/0.3669, allocations: 1.763 MB / 0.5477 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002301/0.3692, allocations: 0.989 MB / 0.5487 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3692, allocations: 1.125 kB / 0.5487 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006644/0.3699, allocations: 291.8 kB / 0.549 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.3711, allocations: 190 kB / 0.5492 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.3818, allocations: 6.746 MB / 0.5557 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005723/0.3824, allocations: 0.9539 MB / 0.5567 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006477/0.3831, allocations: 152.9 kB / 0.5568 GB, free: 3.723 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003922/0.3835, allocations: 259.3 kB / 0.5571 GB, free: 3.469 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3835, allocations: 0 / 0.5571 GB, free: 3.469 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03965/0.4231, allocations: 15.64 MB / 0.5723 GB, free: 3.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.26/9.683, allocations: 10.17 kB / 0.5723 GB, free: 3.988 MB / 430.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1)