Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 122.5 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.001275/0.001275, allocations: 202 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.383/1.383, 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 trunk/package.mo): time 0.2785/0.2785, allocations: 46.13 MB / 344.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003045/0.003045, allocations: 79.86 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3189, allocations: 62.45 MB / 0.5306 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006101/0.325, allocations: 4.539 MB / 0.535 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003011/0.3281, allocations: 1.652 MB / 0.5367 GB, free: 8.391 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003787/0.3285, allocations: 16.34 kB / 0.5367 GB, free: 8.387 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007878/0.3293, allocations: 300.1 kB / 0.537 GB, free: 8.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003681/0.3297, allocations: 156.7 kB / 0.5371 GB, free: 8.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005059/0.3302, allocations: 268.4 kB / 0.5374 GB, free: 7.789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008734/0.3311, allocations: 0.8492 MB / 0.5382 GB, free: 7.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.3316, allocations: 389.3 kB / 0.5386 GB, free: 7.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000429/0.3321, allocations: 305.5 kB / 0.5389 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.3325, allocations: 344.5 kB / 0.5392 GB, free: 6.543 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.3326, allocations: 79.88 kB / 0.5393 GB, free: 6.543 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.3327, allocations: 80.22 kB / 0.5393 GB, free: 6.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.3329, allocations: 178.9 kB / 0.5395 GB, free: 6.387 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003427/0.3332, allocations: 370.7 kB / 0.5399 GB, free: 6.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009735/0.3342, allocations: 0.9337 MB / 0.5408 GB, free: 5.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3342, allocations: 0 / 0.5408 GB, free: 5.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3342, allocations: 0 / 0.5408 GB, free: 5.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.3342, allocations: 5.125 kB / 0.5408 GB, free: 5.367 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.00164/0.3359, allocations: 1.038 MB / 0.5418 GB, free: 4.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3359, allocations: 13.5 kB / 0.5418 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.3361, allocations: 97.58 kB / 0.5419 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.3362, allocations: 89.62 kB / 0.542 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007663/0.337, allocations: 0.5066 MB / 0.5425 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.868e-05/0.337, allocations: 45.44 kB / 0.5425 GB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.25e-05/0.3371, allocations: 73.52 kB / 0.5426 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.3381, allocations: 0.5966 MB / 0.5432 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.662e-05/0.3382, allocations: 1.5 kB / 0.5432 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.796e-05/0.3383, allocations: 25.88 kB / 0.5432 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.3383, allocations: 18.47 kB / 0.5432 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008717/0.3391, allocations: 418.1 kB / 0.5436 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003243/0.3424, allocations: 2.139 MB / 0.5457 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.3436, allocations: 0.5625 MB / 0.5463 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000362/0.344, allocations: 178.5 kB / 0.5464 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.3441, allocations: 3.562 kB / 0.5464 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.3441, allocations: 40.86 kB / 0.5465 GB, free: 1.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.335e-06/0.3441, allocations: 0 / 0.5465 GB, free: 1.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002411/0.3465, allocations: 1.141 MB / 0.5476 GB, free: 15.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.3466, allocations: 55.41 kB / 0.5476 GB, free: 15.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006714/0.3473, allocations: 0.5222 MB / 0.5481 GB, free: 15.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.3473, allocations: 33.7 kB / 0.5482 GB, free: 15.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.3476, allocations: 352.7 kB / 0.5485 GB, free: 14.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.3477, allocations: 118.9 kB / 0.5486 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.3478, allocations: 82.08 kB / 0.5487 GB, free: 14.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.348, allocations: 362.8 kB / 0.549 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.3484, allocations: 146.5 kB / 0.5492 GB, free: 14.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.3487, allocations: 224.9 kB / 0.5494 GB, free: 13.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006917/0.3494, allocations: 364.1 kB / 0.5498 GB, free: 13.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.3495, allocations: 0 / 0.5498 GB, free: 13.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009436/0.3504, allocations: 485.3 kB / 0.5502 GB, free: 13.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3504, allocations: 8.281 kB / 0.5502 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3504, allocations: 4 kB / 0.5502 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.3506, allocations: 28.84 kB / 0.5503 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.351, allocations: 99.83 kB / 0.5503 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.3522, allocations: 1.376 MB / 0.5517 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.3525, allocations: 23.98 kB / 0.5517 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.3525, allocations: 20 kB / 0.5517 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004106/0.3529, allocations: 261 kB / 0.552 GB, free: 11.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002913/0.3532, allocations: 202.9 kB / 0.5522 GB, free: 10.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005116/0.3537, allocations: 332 kB / 0.5525 GB, free: 10.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.416e-06/0.3537, allocations: 0 / 0.5525 GB, free: 10.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007659/0.3545, allocations: 454.8 kB / 0.5529 GB, free: 10.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/0.3545, allocations: 4 kB / 0.5529 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.3546, allocations: 4 kB / 0.5529 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.668e-05/0.3546, allocations: 24.84 kB / 0.553 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.355, allocations: 95.83 kB / 0.553 GB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.356, allocations: 1.38 MB / 0.5544 GB, free: 8.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.3563, allocations: 28.08 kB / 0.5544 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.3563, allocations: 16 kB / 0.5544 GB, free: 8.391 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001696/0.3565, allocations: 205.6 kB / 0.5546 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.544e-05/0.3566, allocations: 55.67 kB / 0.5547 GB, free: 8.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.3567, allocations: 53.28 kB / 0.5547 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3567, allocations: 4 kB / 0.5547 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3567, allocations: 3.938 kB / 0.5547 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3567, allocations: 0 / 0.5547 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.3585, allocations: 1.071 MB / 0.5558 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3585, allocations: 4.031 kB / 0.5558 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003378/0.3588, allocations: 67.89 kB / 0.5559 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.994e-05/0.3589, allocations: 24.84 kB / 0.5559 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.3589, allocations: 4 kB / 0.5559 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.36, allocations: 1.382 MB / 0.5572 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.36, allocations: 4.031 kB / 0.5572 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.3611, allocations: 0.6359 MB / 0.5579 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.3612, allocations: 144.6 kB / 0.558 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.3613, allocations: 8 kB / 0.558 GB, free: 4.477 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.3615, allocations: 27.97 kB / 0.558 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.766e-05/0.3616, allocations: 15.97 kB / 0.5581 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.3617, allocations: 12 kB / 0.5581 GB, free: 4.422 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004475/0.3621, allocations: 366.9 kB / 0.5584 GB, free: 4.066 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3621, allocations: 4 kB / 0.5584 GB, free: 4.062 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006319/0.3628, allocations: 180 kB / 0.5586 GB, free: 3.887 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001417/0.3642, allocations: 1.172 MB / 0.5597 GB, free: 2.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.3655, allocations: 0.752 MB / 0.5605 GB, free: 1.898 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3655, allocations: 0 / 0.5605 GB, free: 1.898 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000439/0.366, allocations: 266.8 kB / 0.5607 GB, free: 1.625 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.3666, allocations: 114.2 kB / 0.5608 GB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007365/0.374, allocations: 5.011 MB / 0.5657 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.3746, allocations: 0.8863 MB / 0.5666 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002446/0.3748, allocations: 64.36 kB / 0.5666 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.3752, allocations: 227.4 kB / 0.5669 GB, free: 11.14 MB / 430.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3752, allocations: 4 kB / 0.5669 GB, free: 11.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05871/0.4339, allocations: 11.12 MB / 0.5777 GB, free: 180 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.82, allocations: 10.67 kB / 0.5777 GB, free: 176 kB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)