Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2272/0.2272, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 71.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3614, allocations: 62.44 MB / 0.5305 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005212/0.3667, allocations: 4.023 MB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002412/0.3691, allocations: 1.494 MB / 0.5359 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004612/0.3696, allocations: 12.94 kB / 0.5359 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006959/0.3703, allocations: 255.5 kB / 0.5361 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.3707, allocations: 139.8 kB / 0.5363 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.3711, allocations: 190.6 kB / 0.5365 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000581/0.3717, allocations: 0.6379 MB / 0.5371 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004258/0.3721, allocations: 267.1 kB / 0.5373 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.3725, allocations: 239 kB / 0.5376 GB, free: 7.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.3728, allocations: 268.7 kB / 0.5378 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.006e-05/0.3729, allocations: 61 kB / 0.5379 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.652e-05/0.3729, allocations: 65.31 kB / 0.5379 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.3731, allocations: 134.4 kB / 0.5381 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.3733, allocations: 288 kB / 0.5383 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007016/0.374, allocations: 0.7092 MB / 0.539 GB, free: 6.625 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3741, allocations: 0 / 0.539 GB, free: 6.625 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3741, allocations: 0 / 0.539 GB, free: 6.625 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3741, allocations: 1.375 kB / 0.539 GB, free: 6.625 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001259/0.3753, allocations: 0.8403 MB / 0.5399 GB, free: 5.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3754, allocations: 9.906 kB / 0.5399 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.456e-05/0.3755, allocations: 86.02 kB / 0.5399 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.637e-05/0.3756, allocations: 57.88 kB / 0.54 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.3762, allocations: 416 kB / 0.5404 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.3762, allocations: 36.44 kB / 0.5404 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.09e-05/0.3763, allocations: 50.94 kB / 0.5405 GB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007247/0.377, allocations: 456.5 kB / 0.5409 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3771, allocations: 1.5 kB / 0.5409 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.035e-05/0.3771, allocations: 21.16 kB / 0.5409 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.3771, allocations: 15.25 kB / 0.541 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005714/0.3777, allocations: 303.3 kB / 0.5412 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.38, allocations: 1.654 MB / 0.5429 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007886/0.3808, allocations: 389.3 kB / 0.5432 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.381, allocations: 118.7 kB / 0.5433 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.381, allocations: 2.844 kB / 0.5433 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.381, allocations: 36.84 kB / 0.5434 GB, free: 3.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.381, allocations: 0 / 0.5434 GB, free: 3.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001653/0.3827, allocations: 0.8888 MB / 0.5442 GB, free: 2.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.3828, allocations: 62.7 kB / 0.5443 GB, free: 2.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/0.3832, allocations: 397.1 kB / 0.5447 GB, free: 2.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.3832, allocations: 31.7 kB / 0.5447 GB, free: 2.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.3834, allocations: 277.5 kB / 0.545 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.425e-05/0.3835, allocations: 88.77 kB / 0.5451 GB, free: 1.875 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.3836, allocations: 62.73 kB / 0.5451 GB, free: 1.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3837, allocations: 354.9 kB / 0.5455 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.3839, allocations: 101.5 kB / 0.5456 GB, free: 1.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.3842, allocations: 156.2 kB / 0.5457 GB, free: 1.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004126/0.3846, allocations: 255.5 kB / 0.546 GB, free: 1.137 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3846, allocations: 0 / 0.546 GB, free: 1.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006053/0.3852, allocations: 357.7 kB / 0.5463 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3852, allocations: 9.344 kB / 0.5463 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3852, allocations: 2.094 kB / 0.5463 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001374/0.3854, allocations: 19.95 kB / 0.5463 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.3857, allocations: 72.33 kB / 0.5464 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009891/0.3867, allocations: 1.38 MB / 0.5477 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.3869, allocations: 16.12 kB / 0.5478 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.3869, allocations: 12 kB / 0.5478 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000263/0.3872, allocations: 212.1 kB / 0.548 GB, free: 15.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000186/0.3874, allocations: 148.4 kB / 0.5481 GB, free: 14.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003179/0.3877, allocations: 239.6 kB / 0.5483 GB, free: 14.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.412e-06/0.3877, allocations: 4 kB / 0.5483 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005041/0.3882, allocations: 334 kB / 0.5487 GB, free: 14.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.146e-06/0.3882, allocations: 4 kB / 0.5487 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.3882, allocations: 4 kB / 0.5487 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.566e-05/0.3883, allocations: 33.09 kB / 0.5487 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.3886, allocations: 67.91 kB / 0.5488 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008953/0.3895, allocations: 1.375 MB / 0.5501 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.3897, allocations: 12.02 kB / 0.5501 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.3897, allocations: 16 kB / 0.5501 GB, free: 12.72 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0001394/0.3898, allocations: 200.1 kB / 0.5503 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.052e-05/0.3899, allocations: 35.53 kB / 0.5504 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.25e-05/0.39, allocations: 47.61 kB / 0.5504 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.39, allocations: 4 kB / 0.5504 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.39, allocations: 0 / 0.5504 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.39, allocations: 3.984 kB / 0.5504 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.3911, allocations: 0.8431 MB / 0.5512 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3912, allocations: 0 / 0.5512 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.3914, allocations: 55.91 kB / 0.5513 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.597e-05/0.3915, allocations: 24.78 kB / 0.5513 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.3915, allocations: 4 kB / 0.5513 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000901/0.3924, allocations: 1.379 MB / 0.5527 GB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3924, allocations: 7.969 kB / 0.5527 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006827/0.3931, allocations: 485.4 kB / 0.5531 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.3933, allocations: 120.7 kB / 0.5533 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.3933, allocations: 4 kB / 0.5533 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.3935, allocations: 15.98 kB / 0.5533 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.368e-05/0.3936, allocations: 23.91 kB / 0.5533 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.3936, allocations: 8 kB / 0.5533 GB, free: 9.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003029/0.3939, allocations: 283.2 kB / 0.5536 GB, free: 8.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3939, allocations: 0 / 0.5536 GB, free: 8.953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005367/0.3944, allocations: 140 kB / 0.5537 GB, free: 8.816 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.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 (24): * Single equations (assignments): 23 * 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.000959/0.3954, allocations: 1.027 MB / 0.5547 GB, free: 7.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009518/0.3964, allocations: 0.5874 MB / 0.5553 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3964, allocations: 4.25 kB / 0.5553 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000306/0.3967, allocations: 226.6 kB / 0.5555 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.3972, allocations: 78.53 kB / 0.5556 GB, free: 6.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005371/0.4026, allocations: 3.943 MB / 0.5594 GB, free: 2.734 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.4031, allocations: 0.8347 MB / 0.5602 GB, free: 1.871 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.4033, allocations: 47.25 kB / 0.5603 GB, free: 1.828 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.4035, allocations: 167.4 kB / 0.5604 GB, free: 1.664 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4035, allocations: 0 / 0.5604 GB, free: 1.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03477/0.4383, allocations: 8.474 MB / 0.5687 GB, free: 9.344 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.957/10.4, allocations: 14.45 kB / 0.5687 GB, free: 9.336 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)