Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2313/0.2313, allocations: 46.12 MB / 344.3 MB, free: 11.36 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 75.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.401, allocations: 62.43 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.005977/0.4071, allocations: 2.12 MB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.4113, allocations: 1.37 MB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.4116, allocations: 4.125 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.4117, allocations: 19.73 kB / 0.534 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002135/0.412, allocations: 38.39 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.413, allocations: 195.4 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.4133, allocations: 183.5 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003369/0.4137, allocations: 108.4 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.414, allocations: 85.89 kB / 0.5346 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.4142, allocations: 96.11 kB / 0.5347 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.91e-05/0.4142, allocations: 15.12 kB / 0.5347 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005291/0.4148, allocations: 146.4 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.815e-05/0.4149, allocations: 48.08 kB / 0.5349 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.415, allocations: 90.8 kB / 0.535 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007507/0.4158, allocations: 319.5 kB / 0.5353 GB, free: 9.715 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4158, allocations: 0 / 0.5353 GB, free: 9.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4158, allocations: 0 / 0.5353 GB, free: 9.715 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.4158, allocations: 3.938 kB / 0.5353 GB, free: 9.711 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.00103/0.4169, allocations: 0.5426 MB / 0.5358 GB, free: 9.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.4169, allocations: 10.19 kB / 0.5359 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.4171, allocations: 90.77 kB / 0.5359 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00182/0.4189, allocations: 81.75 kB / 0.536 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.4194, allocations: 210.8 kB / 0.5362 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.4195, allocations: 30.62 kB / 0.5362 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-05/0.4195, allocations: 28.62 kB / 0.5363 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007125/0.4203, allocations: 234.4 kB / 0.5365 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4203, allocations: 3.938 kB / 0.5365 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.4204, allocations: 10.84 kB / 0.5365 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.4204, allocations: 11.39 kB / 0.5365 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005981/0.421, allocations: 162.2 kB / 0.5367 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.4226, allocations: 0.6481 MB / 0.5373 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009349/0.4236, allocations: 232.8 kB / 0.5375 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.4238, allocations: 69.33 kB / 0.5376 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.4239, allocations: 3.234 kB / 0.5376 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.424, allocations: 41.17 kB / 0.5376 GB, free: 7.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.515e-06/0.424, allocations: 0 / 0.5376 GB, free: 7.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008319/0.4248, allocations: 218.1 kB / 0.5378 GB, free: 7.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.4249, allocations: 58.62 kB / 0.5379 GB, free: 7.684 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.4251, allocations: 106 kB / 0.538 GB, free: 7.578 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.4251, allocations: 31.08 kB / 0.538 GB, free: 7.543 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.4253, allocations: 151.2 kB / 0.5382 GB, free: 7.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.4254, allocations: 89.64 kB / 0.5383 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.4255, allocations: 43.86 kB / 0.5383 GB, free: 7.289 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.4258, allocations: 320.8 kB / 0.5386 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.426, allocations: 36.11 kB / 0.5386 GB, free: 6.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.4261, allocations: 54.98 kB / 0.5387 GB, free: 6.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/0.4266, allocations: 120.2 kB / 0.5388 GB, free: 6.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.4266, allocations: 3.984 kB / 0.5388 GB, free: 6.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005406/0.4271, allocations: 167.9 kB / 0.539 GB, free: 6.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4272, allocations: 6.906 kB / 0.539 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4272, allocations: 0 / 0.539 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.4272, allocations: 1.312 kB / 0.539 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000708/0.428, allocations: 108.6 kB / 0.5391 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.428, allocations: 0 / 0.5391 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.4281, allocations: 21.12 kB / 0.5391 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.4282, allocations: 8.438 kB / 0.5391 GB, free: 6.73 MB / 398.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 (27): * Single equations (assignments): 27 * 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 0.0001913/0.4284, allocations: 121.5 kB / 0.5392 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/0.4284, allocations: 8.547 kB / 0.5392 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.4286, allocations: 27.03 kB / 0.5393 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.4286, allocations: 18.47 kB / 0.5393 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.4286, allocations: 0 / 0.5393 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.4286, allocations: 9.812 kB / 0.5393 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.4292, allocations: 285 kB / 0.5396 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.4292, allocations: 1.562 kB / 0.5396 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00065/0.4299, allocations: 94.56 kB / 0.5397 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.4299, allocations: 5.188 kB / 0.5397 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.43, allocations: 6.281 kB / 0.5397 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.43, allocations: 5.094 kB / 0.5397 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.43, allocations: 0 / 0.5397 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006337/0.4306, allocations: 273.2 kB / 0.5399 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-05/0.4307, allocations: 92.88 kB / 0.54 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/0.4308, allocations: 6.156 kB / 0.54 GB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.431, allocations: 10.31 kB / 0.54 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.4311, allocations: 23.19 kB / 0.5401 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.4311, allocations: 4.531 kB / 0.5401 GB, free: 5.926 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.793e-05/0.4312, allocations: 83.88 kB / 0.5401 GB, free: 5.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4312, allocations: 1.125 kB / 0.5401 GB, free: 5.848 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005611/0.4318, allocations: 57.36 kB / 0.5402 GB, free: 5.824 MB / 398.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 (27): * Single equations (assignments): 27 * 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.001389/0.4332, allocations: 0.8735 MB / 0.5411 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005326/0.4338, allocations: 135.1 kB / 0.5412 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.4338, allocations: 1.094 kB / 0.5412 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.434, allocations: 77.83 kB / 0.5413 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.4345, allocations: 14.94 kB / 0.5413 GB, free: 4.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.4388, allocations: 1.978 MB / 0.5432 GB, free: 3.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007237/0.4396, allocations: 0.7466 MB / 0.5439 GB, free: 2.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.4398, allocations: 19.56 kB / 0.544 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.44, allocations: 67.69 kB / 0.544 GB, free: 2.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.44, allocations: 1.094 kB / 0.544 GB, free: 2.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.4707, allocations: 2.773 MB / 0.5467 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.216/8.687, allocations: 6.031 kB / 0.5467 GB, free: 0.793 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks_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_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1)