Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.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.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001432/0.001432, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 199.9 kB / 18.74 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.428/1.428, 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.2386/0.2386, allocations: 46.13 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.002265/0.002265, allocations: 79.86 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3119, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005701/0.3177, allocations: 4.033 MB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002691/0.3204, allocations: 1.272 MB / 0.5358 GB, free: 9.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003886/0.3208, allocations: 25.12 kB / 0.5358 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003137/0.3212, allocations: 112.9 kB / 0.5359 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005226/0.3217, allocations: 167.3 kB / 0.5361 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008512/0.3226, allocations: 410.7 kB / 0.5365 GB, free: 8.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009628/0.3235, allocations: 0.8364 MB / 0.5373 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004713/0.324, allocations: 284.5 kB / 0.5376 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004835/0.3245, allocations: 333.3 kB / 0.5379 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003757/0.3249, allocations: 319.2 kB / 0.5382 GB, free: 7.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.325, allocations: 64.78 kB / 0.5382 GB, free: 7.402 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.3252, allocations: 76.33 kB / 0.5383 GB, free: 7.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.3253, allocations: 152 kB / 0.5385 GB, free: 7.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003186/0.3256, allocations: 355.2 kB / 0.5388 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009862/0.3266, allocations: 0.8031 MB / 0.5396 GB, free: 6.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3266, allocations: 0 / 0.5396 GB, free: 6.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3267, allocations: 1.656 kB / 0.5396 GB, free: 6.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.3267, allocations: 0 / 0.5396 GB, free: 6.371 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001837/0.3285, allocations: 1.087 MB / 0.5406 GB, free: 5.496 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3286, allocations: 10.06 kB / 0.5407 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.3287, allocations: 91.83 kB / 0.5407 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002576/0.3289, allocations: 101.7 kB / 0.5408 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009157/0.3299, allocations: 0.5505 MB / 0.5414 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.409e-05/0.3299, allocations: 48.25 kB / 0.5414 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.828e-05/0.33, allocations: 62.14 kB / 0.5415 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.3311, allocations: 0.6172 MB / 0.5421 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.3312, allocations: 5.062 kB / 0.5421 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.162e-05/0.3312, allocations: 23.25 kB / 0.5421 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3313, allocations: 12.34 kB / 0.5421 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007734/0.332, allocations: 385.9 kB / 0.5425 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004104/0.3361, allocations: 2.985 MB / 0.5454 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009727/0.3371, allocations: 439.5 kB / 0.5458 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003689/0.3375, allocations: 170.8 kB / 0.546 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.3376, allocations: 8.406 kB / 0.546 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.3376, allocations: 41.91 kB / 0.546 GB, free: 1.223 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.465e-06/0.3376, allocations: 0 / 0.546 GB, free: 1.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001341/0.339, allocations: 0.55 MB / 0.5466 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.3391, allocations: 137 kB / 0.5467 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006714/0.3398, allocations: 0.551 MB / 0.5472 GB, free: 252 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.3398, allocations: 33.7 kB / 0.5473 GB, free: 212 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003317/0.3402, allocations: 380.8 kB / 0.5476 GB, free: 15.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.3403, allocations: 158.6 kB / 0.5478 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.3405, allocations: 126.3 kB / 0.5479 GB, free: 15.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.3407, allocations: 374.8 kB / 0.5483 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004311/0.3412, allocations: 187.4 kB / 0.5484 GB, free: 14.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006051/0.3418, allocations: 397.9 kB / 0.5488 GB, free: 14.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009999/0.3428, allocations: 0.5714 MB / 0.5494 GB, free: 13.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3428, allocations: 3.938 kB / 0.5494 GB, free: 13.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001329/0.3441, allocations: 0.6606 MB / 0.55 GB, free: 13.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3442, allocations: 8 kB / 0.55 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3442, allocations: 8.625 kB / 0.55 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3442, allocations: 16 kB / 0.5501 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/0.3448, allocations: 135.8 kB / 0.5502 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.833e-05/0.3448, allocations: 23.98 kB / 0.5502 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004098/0.3452, allocations: 71.55 kB / 0.5503 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.3453, allocations: 28 kB / 0.5503 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005609/0.3458, allocations: 309.3 kB / 0.5506 GB, free: 12.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005565/0.3464, allocations: 389.9 kB / 0.551 GB, free: 12.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009466/0.3474, allocations: 0.552 MB / 0.5515 GB, free: 11.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.051e-06/0.3474, allocations: 8 kB / 0.5515 GB, free: 11.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001207/0.3486, allocations: 0.6252 MB / 0.5521 GB, free: 10.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3486, allocations: 8 kB / 0.5521 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3486, allocations: 8.672 kB / 0.5521 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.3487, allocations: 19.94 kB / 0.5522 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005211/0.3492, allocations: 135.8 kB / 0.5523 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.3492, allocations: 15.92 kB / 0.5523 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/0.3497, allocations: 63.61 kB / 0.5524 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.3497, allocations: 32 kB / 0.5524 GB, free: 10.53 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.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): 78 * 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.0002102/0.3499, allocations: 216.6 kB / 0.5526 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.3501, allocations: 67.58 kB / 0.5527 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.3502, allocations: 78.11 kB / 0.5527 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3503, allocations: 7.984 kB / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3503, allocations: 0 / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3503, allocations: 0 / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008976/0.3512, allocations: 0.5713 MB / 0.5533 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3512, allocations: 3.938 kB / 0.5533 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/0.3517, allocations: 87.89 kB / 0.5534 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3517, allocations: 0 / 0.5534 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.936e-05/0.3518, allocations: 19.92 kB / 0.5534 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.3518, allocations: 7.938 kB / 0.5534 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3518, allocations: 0 / 0.5534 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.3532, allocations: 0.7782 MB / 0.5542 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.3534, allocations: 172.7 kB / 0.5544 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-05/0.3535, allocations: 19.94 kB / 0.5544 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003481/0.3539, allocations: 23.98 kB / 0.5544 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.354, allocations: 31.95 kB / 0.5544 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.354, allocations: 12 kB / 0.5544 GB, free: 8.352 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000459/0.3545, allocations: 379.1 kB / 0.5548 GB, free: 7.984 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3545, allocations: 0 / 0.5548 GB, free: 7.984 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008526/0.3553, allocations: 239.4 kB / 0.555 GB, free: 7.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.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 (39): * Single equations (assignments): 39 * 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.001717/0.3571, allocations: 1.342 MB / 0.5563 GB, free: 6.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.3586, allocations: 0.7211 MB / 0.557 GB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3586, allocations: 0 / 0.557 GB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.359, allocations: 191.8 kB / 0.5572 GB, free: 5.473 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009796/0.36, allocations: 184.8 kB / 0.5574 GB, free: 5.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008419/0.3685, allocations: 5.722 MB / 0.563 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.3691, allocations: 0.9104 MB / 0.5639 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003982/0.3695, allocations: 80.83 kB / 0.564 GB, free: 14.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.3699, allocations: 243.4 kB / 0.5642 GB, free: 14.06 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3699, allocations: 0 / 0.5642 GB, free: 14.06 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04084/0.4107, allocations: 12.82 MB / 0.5767 GB, free: 1.355 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.032/9.443, allocations: 6.812 kB / 0.5767 GB, free: 1.352 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)