Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.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.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 247 MB, free: 10.42 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.2311/0.2311, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.002569/0.002569, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.319, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001419/0.3205, allocations: 490.4 kB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003179/0.3237, allocations: 2.126 MB / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.492e-05/0.3237, allocations: 0 / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.43e-05/0.3237, allocations: 1.781 kB / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.487e-05/0.3237, allocations: 0 / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.3248, allocations: 405.8 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.705e-05/0.3249, allocations: 9.344 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.535e-05/0.3249, allocations: 9.25 kB / 0.5335 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.387e-05/0.3249, allocations: 2.469 kB / 0.5335 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02071/0.3456, allocations: 3.347 MB / 0.5368 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.3457, allocations: 0 / 0.5368 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.646e-05/0.3458, allocations: 7.969 kB / 0.5368 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.148e-06/0.3458, allocations: 1.188 kB / 0.5368 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.957e-05/0.3458, allocations: 1.156 kB / 0.5368 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.3459, allocations: 16.33 kB / 0.5368 GB, free: 9.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3459, allocations: 3.938 kB / 0.5368 GB, free: 9.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.346, allocations: 0 / 0.5368 GB, free: 9.793 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.346, allocations: 1.094 kB / 0.5368 GB, free: 9.793 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003216/0.3463, allocations: 311.6 kB / 0.5371 GB, free: 9.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3463, allocations: 9.969 kB / 0.5371 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.364e-05/0.3464, allocations: 111.3 kB / 0.5372 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.3466, allocations: 94.52 kB / 0.5373 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.3468, allocations: 239.6 kB / 0.5376 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.146e-05/0.3469, allocations: 150.9 kB / 0.5377 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.529e-05/0.347, allocations: 160.3 kB / 0.5379 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.557e-05/0.347, allocations: 101 kB / 0.538 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.717e-05/0.3471, allocations: 83.28 kB / 0.538 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8e-05/0.3472, allocations: 152.4 kB / 0.5382 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-05/0.3472, allocations: 154.5 kB / 0.5383 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.014e-05/0.3473, allocations: 154.5 kB / 0.5385 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003211/0.3476, allocations: 447 kB / 0.5389 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.3477, allocations: 170.4 kB / 0.5391 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.843e-05/0.3478, allocations: 80.14 kB / 0.5391 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.3478, allocations: 80.84 kB / 0.5392 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.46e-05/0.3479, allocations: 105.8 kB / 0.5393 GB, free: 7.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.3479, allocations: 5.344 kB / 0.5393 GB, free: 7.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.279e-05/0.348, allocations: 30.45 kB / 0.5393 GB, free: 7.051 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.3481, allocations: 183.5 kB / 0.5395 GB, free: 6.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.472e-05/0.3482, allocations: 91.27 kB / 0.5396 GB, free: 6.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.3482, allocations: 25.7 kB / 0.5396 GB, free: 6.719 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.3483, allocations: 81.36 kB / 0.5397 GB, free: 6.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-06/0.3483, allocations: 0 / 0.5397 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.3483, allocations: 16.12 kB / 0.5397 GB, free: 6.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3485, allocations: 315 kB / 0.54 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.138e-06/0.3485, allocations: 1.406 kB / 0.54 GB, free: 6.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.807e-05/0.3485, allocations: 11.19 kB / 0.54 GB, free: 6.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.44e-05/0.3486, allocations: 76.78 kB / 0.5401 GB, free: 6.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.745e-05/0.3486, allocations: 75.28 kB / 0.5402 GB, free: 6.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.546e-05/0.3487, allocations: 40.03 kB / 0.5402 GB, free: 6.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.3487, allocations: 80.5 kB / 0.5403 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.514e-05/0.3488, allocations: 80.44 kB / 0.5404 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.077e-05/0.3488, allocations: 159.5 kB / 0.5405 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.263e-05/0.3489, allocations: 76.44 kB / 0.5406 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.744e-05/0.349, allocations: 150.6 kB / 0.5407 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.504e-05/0.3491, allocations: 81.34 kB / 0.5408 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.3491, allocations: 84.47 kB / 0.5409 GB, free: 5.402 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 (0): * Single equations (assignments): 0 * 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.0001444/0.3493, allocations: 266.6 kB / 0.5412 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.511e-05/0.3494, allocations: 114.3 kB / 0.5413 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.986e-05/0.3494, allocations: 113.2 kB / 0.5414 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-05/0.3495, allocations: 176.3 kB / 0.5415 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.702e-05/0.3496, allocations: 189.5 kB / 0.5417 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.059e-05/0.3497, allocations: 182 kB / 0.5419 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.35, allocations: 406.4 kB / 0.5423 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.642e-05/0.35, allocations: 106.9 kB / 0.5424 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.091e-05/0.3501, allocations: 105 kB / 0.5425 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.26e-05/0.3502, allocations: 181.6 kB / 0.5427 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.781e-05/0.3502, allocations: 180.3 kB / 0.5428 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.394e-05/0.3503, allocations: 182 kB / 0.543 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.271e-05/0.3504, allocations: 177.5 kB / 0.5432 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.3506, allocations: 311.6 kB / 0.5435 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.285e-05/0.3507, allocations: 179.4 kB / 0.5436 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-05/0.3508, allocations: 193.6 kB / 0.5438 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.58e-05/0.3509, allocations: 106.5 kB / 0.5439 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.351, allocations: 181.5 kB / 0.5441 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-05/0.351, allocations: 102.7 kB / 0.5442 GB, free: 1.828 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.646e-05/0.3511, allocations: 75.28 kB / 0.5443 GB, free: 1.754 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3511, allocations: 0 / 0.5443 GB, free: 1.754 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.3514, allocations: 7.062 kB / 0.5443 GB, free: 1.75 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 (0): * Single equations (assignments): 0 * 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.0004477/0.3518, allocations: 0.8083 MB / 0.5451 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 3.826e-05/0.3519, allocations: 1.594 kB / 0.5451 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3519, allocations: 0 / 0.5451 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.503e-06/0.3519, allocations: 4 kB / 0.5451 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.3523, allocations: 458.8 kB / 0.5455 GB, free: 484 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003474/0.3526, allocations: 171.8 kB / 0.5457 GB, free: 276 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.353, allocations: 0.6729 MB / 0.5463 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.984e-05/0.353, allocations: 1.406 kB / 0.5463 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.393e-05/0.353, allocations: 9.188 kB / 0.5463 GB, free: 15.56 MB / 414.1 MB Notification: Performance of SimCode: time 2.214e-06/0.353, allocations: 4 kB / 0.5463 GB, free: 15.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.3738, allocations: 1.022 MB / 0.5473 GB, free: 14.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.078/8.452, allocations: 13.69 kB / 0.5474 GB, free: 14.95 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1)