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.001337/0.001337, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.48 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.2425/0.2425, allocations: 46.12 MB / 344.4 MB, free: 11.49 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.002198/0.002198, allocations: 87.84 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.368, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003616/0.3717, allocations: 2.113 MB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.3741, allocations: 1.371 MB / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.3742, allocations: 6.75 kB / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.766e-05/0.3743, allocations: 25.05 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.3744, allocations: 34.41 kB / 0.5341 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00053/0.375, allocations: 198 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.3752, allocations: 175.6 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.3755, allocations: 112.4 kB / 0.5345 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.3756, allocations: 89.83 kB / 0.5346 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.3758, allocations: 92.11 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.3758, allocations: 15.12 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.3761, allocations: 146.2 kB / 0.5349 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.378e-05/0.3762, allocations: 47.27 kB / 0.5349 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.3763, allocations: 97.28 kB / 0.535 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004618/0.3768, allocations: 317.4 kB / 0.5353 GB, free: 9.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3768, allocations: 5.094 kB / 0.5353 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3768, allocations: 0 / 0.5353 GB, free: 9.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.3768, allocations: 0 / 0.5353 GB, free: 9.766 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.0007132/0.3775, allocations: 0.5345 MB / 0.5358 GB, free: 9.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.3775, allocations: 9.25 kB / 0.5359 GB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.3777, allocations: 87.06 kB / 0.5359 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009248/0.3786, allocations: 86.12 kB / 0.536 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.3789, allocations: 211.5 kB / 0.5362 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.379, allocations: 26.25 kB / 0.5362 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.379, allocations: 28.91 kB / 0.5363 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.3794, allocations: 234.1 kB / 0.5365 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3795, allocations: 0 / 0.5365 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.3795, allocations: 11.09 kB / 0.5365 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.3795, allocations: 15.02 kB / 0.5365 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.3798, allocations: 169.8 kB / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.3808, allocations: 0.6489 MB / 0.5373 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005652/0.3814, allocations: 231.9 kB / 0.5375 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.3816, allocations: 69.86 kB / 0.5376 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.3816, allocations: 3.234 kB / 0.5376 GB, free: 7.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.3816, allocations: 40.64 kB / 0.5376 GB, free: 7.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.453e-06/0.3817, allocations: 3.938 kB / 0.5376 GB, free: 7.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005061/0.3822, allocations: 215.4 kB / 0.5379 GB, free: 7.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3822, allocations: 62.64 kB / 0.5379 GB, free: 7.738 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.642e-05/0.3823, allocations: 100.4 kB / 0.538 GB, free: 7.637 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.3824, allocations: 31.11 kB / 0.538 GB, free: 7.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.3825, allocations: 151.3 kB / 0.5382 GB, free: 7.461 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.509e-05/0.3826, allocations: 93.38 kB / 0.5383 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-05/0.3826, allocations: 48.27 kB / 0.5383 GB, free: 7.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3828, allocations: 321.1 kB / 0.5386 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.984e-05/0.3829, allocations: 36.45 kB / 0.5387 GB, free: 7.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.779e-05/0.383, allocations: 50.73 kB / 0.5387 GB, free: 6.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.3833, allocations: 115.7 kB / 0.5388 GB, free: 6.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3833, allocations: 0 / 0.5388 GB, free: 6.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003056/0.3836, allocations: 175.7 kB / 0.539 GB, free: 6.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3836, allocations: 9.766 kB / 0.539 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3836, allocations: 0 / 0.539 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3837, allocations: 1.5 kB / 0.539 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.384, allocations: 95.2 kB / 0.5391 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.384, allocations: 5.125 kB / 0.5391 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-05/0.3841, allocations: 20.56 kB / 0.5391 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3842, allocations: 12.62 kB / 0.5391 GB, free: 6.785 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.0001452/0.3843, allocations: 121.7 kB / 0.5392 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.692e-05/0.3844, allocations: 8.609 kB / 0.5392 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.984e-05/0.3844, allocations: 30.56 kB / 0.5393 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.3844, allocations: 7.156 kB / 0.5393 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3845, allocations: 0 / 0.5393 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3845, allocations: 5.078 kB / 0.5393 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003902/0.3849, allocations: 282 kB / 0.5396 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3849, allocations: 1.062 kB / 0.5396 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/0.3853, allocations: 102.6 kB / 0.5397 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.3853, allocations: 1.281 kB / 0.5397 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.3853, allocations: 6.094 kB / 0.5397 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.3853, allocations: 5.094 kB / 0.5397 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3853, allocations: 0 / 0.5397 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003989/0.3857, allocations: 277.9 kB / 0.5399 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.869e-05/0.3858, allocations: 88.47 kB / 0.54 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.3858, allocations: 10.09 kB / 0.54 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/0.3859, allocations: 10.03 kB / 0.54 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.386, allocations: 23.56 kB / 0.5401 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.386, allocations: 4.625 kB / 0.5401 GB, free: 5.988 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.259e-05/0.386, allocations: 84.66 kB / 0.5401 GB, free: 5.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3861, allocations: 0 / 0.5401 GB, free: 5.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.3863, allocations: 61.89 kB / 0.5402 GB, free: 5.883 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.0008454/0.3872, allocations: 0.8693 MB / 0.5411 GB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.3875, allocations: 132 kB / 0.5412 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3875, allocations: 4 kB / 0.5412 GB, free: 5.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.3877, allocations: 81.14 kB / 0.5413 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.3879, allocations: 18.03 kB / 0.5413 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.3905, allocations: 1.98 MB / 0.5432 GB, free: 3.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.391, allocations: 0.741 MB / 0.5439 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.952e-05/0.3911, allocations: 19.38 kB / 0.544 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.3912, allocations: 68.81 kB / 0.544 GB, free: 2.652 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3912, allocations: 0 / 0.544 GB, free: 2.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.4155, allocations: 2.771 MB / 0.5467 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.339/8.755, allocations: 4.922 kB / 0.5467 GB, free: 0.8633 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1)