Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction",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.00104/0.00104, allocations: 97.38 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 177.7 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3461/0.3461, allocations: 43.54 MB / 314.5 MB, free: 8.707 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005348/0.0005348, allocations: 12 kB / 384 MB, free: 7.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1274, allocations: 58.85 MB / 442.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004515/0.132, allocations: 3.375 MB / 446.2 MB, free: 9.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002452/0.1345, allocations: 1.209 MB / 447.4 MB, free: 8.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.1348, allocations: 19.88 kB / 447.4 MB, free: 8.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1349, allocations: 59.42 kB / 447.5 MB, free: 8.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005676/0.1355, allocations: 187.3 kB / 447.7 MB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006683/0.1362, allocations: 299.5 kB / 448 MB, free: 7.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008713/0.137, allocations: 0.5546 MB / 448.5 MB, free: 7.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004997/0.1375, allocations: 216.8 kB / 448.7 MB, free: 7.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005674/0.1381, allocations: 262.8 kB / 449 MB, free: 6.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.1384, allocations: 250.5 kB / 449.2 MB, free: 6.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.664e-05/0.1385, allocations: 24 kB / 449.3 MB, free: 6.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.986e-05/0.1386, allocations: 24 kB / 449.3 MB, free: 6.473 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.739e-05/0.1387, allocations: 99.47 kB / 449.4 MB, free: 6.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.1388, allocations: 145.3 kB / 449.5 MB, free: 6.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005246/0.1393, allocations: 0.5415 MB / 450.1 MB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1394, allocations: 0 / 450.1 MB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1394, allocations: 0 / 450.1 MB, free: 5.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.1394, allocations: 4 kB / 450.1 MB, free: 5.68 MB / 382.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.001653/0.141, allocations: 0.9502 MB / 451 MB, free: 4.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.1411, allocations: 12.02 kB / 451 MB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.1412, allocations: 98.52 kB / 451.1 MB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002683/0.1415, allocations: 86.97 kB / 451.2 MB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.1425, allocations: 494.5 kB / 451.7 MB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.1426, allocations: 41.31 kB / 451.7 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.025e-05/0.1427, allocations: 63.91 kB / 451.8 MB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.1437, allocations: 0.6115 MB / 452.4 MB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.1437, allocations: 3.953 kB / 452.4 MB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.1438, allocations: 28 kB / 452.4 MB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.1438, allocations: 12 kB / 452.5 MB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007601/0.1446, allocations: 398.2 kB / 452.8 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.231/0.3756, allocations: 3.027 MB / 455.9 MB, free: 44.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.3767, allocations: 479.7 kB / 456.3 MB, free: 44.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.3767, allocations: 2.812 kB / 456.3 MB, free: 44.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.3768, allocations: 38.12 kB / 456.4 MB, free: 44.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.354e-06/0.3768, allocations: 2.531 kB / 456.4 MB, free: 44.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001314/0.3781, allocations: 0.5631 MB / 456.9 MB, free: 44.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3782, allocations: 113.7 kB / 457.1 MB, free: 44.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008233/0.379, allocations: 0.5458 MB / 457.6 MB, free: 44.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.3791, allocations: 32.48 kB / 457.6 MB, free: 44.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003119/0.3794, allocations: 373 kB / 458 MB, free: 43.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3796, allocations: 156.9 kB / 458.2 MB, free: 43.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-05/0.3796, allocations: 13.09 kB / 458.2 MB, free: 43.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3798, allocations: 379.2 kB / 458.5 MB, free: 43.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/0.3803, allocations: 186.1 kB / 458.7 MB, free: 43.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005072/0.3808, allocations: 398.2 kB / 459.1 MB, free: 43.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004197/0.3813, allocations: 235.8 kB / 459.3 MB, free: 43.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.3813, allocations: 2.844 kB / 459.3 MB, free: 43.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001098/0.3824, allocations: 0.6636 MB / 460 MB, free: 43.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005228/0.3829, allocations: 2.617 MB / 462.6 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.3829, allocations: 5.938 kB / 462.6 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.383, allocations: 15.52 kB / 462.6 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005173/0.3835, allocations: 144.7 kB / 462.8 MB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-05/0.3835, allocations: 16.73 kB / 462.8 MB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.384, allocations: 80.89 kB / 462.9 MB, free: 40.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-05/0.384, allocations: 28.17 kB / 462.9 MB, free: 40.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.384, allocations: 5.812 kB / 462.9 MB, free: 40.38 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008606/0.3849, allocations: 0.5404 MB / 463.5 MB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3849, allocations: 7.594 kB / 463.5 MB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.3849, allocations: 12.06 kB / 463.5 MB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.3854, allocations: 141.9 kB / 463.6 MB, free: 40.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.3854, allocations: 15.5 kB / 463.6 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.3858, allocations: 56.39 kB / 463.7 MB, free: 40.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.3858, allocations: 26.38 kB / 463.7 MB, free: 40.29 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002994/0.3861, allocations: 278.4 kB / 464 MB, free: 40.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.826e-05/0.3862, allocations: 68.25 kB / 464 MB, free: 40.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.3863, allocations: 77.25 kB / 464.1 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.3864, allocations: 5.75 kB / 464.1 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.3864, allocations: 0 / 464.1 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.3864, allocations: 3.375 kB / 464.1 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006623/0.3871, allocations: 0.5782 MB / 464.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3871, allocations: 6.484 kB / 464.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.3875, allocations: 92.81 kB / 464.8 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.3875, allocations: 6.656 kB / 464.8 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.3876, allocations: 7.406 kB / 464.8 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3876, allocations: 2.75 kB / 464.8 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3876, allocations: 3.75 kB / 464.8 MB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.3888, allocations: 0.8141 MB / 465.6 MB, free: 39.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.389, allocations: 171.1 kB / 465.8 MB, free: 39.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.343e-05/0.3891, allocations: 9.469 kB / 465.8 MB, free: 39.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003428/0.3894, allocations: 35.95 kB / 465.9 MB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.954e-05/0.3895, allocations: 35.89 kB / 465.9 MB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.3895, allocations: 11.59 kB / 465.9 MB, free: 39.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003245/0.3899, allocations: 370.2 kB / 466.3 MB, free: 39.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3899, allocations: 0 / 466.3 MB, free: 39.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007746/0.3906, allocations: 239.1 kB / 466.5 MB, free: 39.26 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001246/0.3919, allocations: 1.447 MB / 467.9 MB, free: 38.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.3933, allocations: 0.7429 MB / 468.7 MB, free: 38.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3933, allocations: 0 / 468.7 MB, free: 38.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004164/0.3937, allocations: 204.8 kB / 468.9 MB, free: 38.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008919/0.3946, allocations: 159 kB / 469 MB, free: 38.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006297/0.401, allocations: 8.477 MB / 477.5 MB, free: 31.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.4015, allocations: 0.9313 MB / 478.4 MB, free: 31.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003924/0.4019, allocations: 76.95 kB / 478.5 MB, free: 31.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002621/0.4021, allocations: 245.6 kB / 478.8 MB, free: 30.99 MB / 382.1 MB Notification: Performance of SimCode: time 1.253e-06/0.4022, allocations: 0 / 478.8 MB, free: 30.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.4309, allocations: 11.75 MB / 490.5 MB, free: 30.09 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.4311, allocations: 160.6 kB / 490.7 MB, free: 29.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.1/2.531, allocations: 0 / 490.7 MB, free: 29.86 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat