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.00103/0.00103, allocations: 118.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, 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.243/0.243, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.89 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4162, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.007099/0.4233, allocations: 4.541 MB / 0.5349 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00379/0.4271, allocations: 1.655 MB / 0.5365 GB, free: 8.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009827/0.4282, allocations: 16.41 kB / 0.5366 GB, free: 8.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.4295, allocations: 293.4 kB / 0.5368 GB, free: 8.238 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009303/0.4304, allocations: 165.3 kB / 0.537 GB, free: 8.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.4314, allocations: 272.8 kB / 0.5373 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00184/0.4333, allocations: 0.8397 MB / 0.5381 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000817/0.4341, allocations: 398.3 kB / 0.5385 GB, free: 7.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007275/0.4349, allocations: 313.8 kB / 0.5388 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006446/0.4355, allocations: 340.3 kB / 0.5391 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001891/0.4357, allocations: 80.97 kB / 0.5392 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002218/0.436, allocations: 84.5 kB / 0.5392 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.4361, allocations: 166.7 kB / 0.5394 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004611/0.4366, allocations: 377.8 kB / 0.5398 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.4377, allocations: 0.9274 MB / 0.5407 GB, free: 5.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4377, allocations: 1.219 kB / 0.5407 GB, free: 5.438 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4377, allocations: 0 / 0.5407 GB, free: 5.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.4378, allocations: 0 / 0.5407 GB, free: 5.438 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.001891/0.4397, allocations: 1.015 MB / 0.5417 GB, free: 4.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.4397, allocations: 10.31 kB / 0.5417 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.4399, allocations: 105.1 kB / 0.5418 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.4401, allocations: 88.72 kB / 0.5419 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009787/0.4411, allocations: 0.4947 MB / 0.5423 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.1e-05/0.4411, allocations: 46.41 kB / 0.5424 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.4412, allocations: 59.91 kB / 0.5424 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.4424, allocations: 0.5938 MB / 0.543 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.4424, allocations: 8.938 kB / 0.543 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.046e-05/0.4425, allocations: 25.62 kB / 0.5431 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.4425, allocations: 15.75 kB / 0.5431 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000909/0.4434, allocations: 425.8 kB / 0.5435 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003786/0.4472, allocations: 2.142 MB / 0.5456 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.4486, allocations: 0.555 MB / 0.5461 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/0.449, allocations: 174.1 kB / 0.5463 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.641e-05/0.4491, allocations: 7.812 kB / 0.5463 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.4491, allocations: 36.78 kB / 0.5463 GB, free: 1.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.515e-06/0.4491, allocations: 0 / 0.5463 GB, free: 1.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002982/0.4521, allocations: 1.129 MB / 0.5474 GB, free: 20 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.4522, allocations: 59.41 kB / 0.5475 GB, free: 15.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000888/0.4531, allocations: 0.5222 MB / 0.548 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.4532, allocations: 33.7 kB / 0.548 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002949/0.4535, allocations: 340.2 kB / 0.5483 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.4536, allocations: 126.2 kB / 0.5485 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.4538, allocations: 74.05 kB / 0.5485 GB, free: 14.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002359/0.454, allocations: 366.8 kB / 0.5489 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.4543, allocations: 146.5 kB / 0.549 GB, free: 14.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.4548, allocations: 224.8 kB / 0.5492 GB, free: 14.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006387/0.4554, allocations: 364.1 kB / 0.5496 GB, free: 13.69 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4554, allocations: 0 / 0.5496 GB, free: 13.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009475/0.4564, allocations: 481.1 kB / 0.55 GB, free: 13.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.4564, allocations: 4 kB / 0.55 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4564, allocations: 4 kB / 0.5501 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.4566, allocations: 29.12 kB / 0.5501 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.4571, allocations: 103.9 kB / 0.5502 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.4586, allocations: 1.376 MB / 0.5515 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/0.459, allocations: 23.98 kB / 0.5515 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.4591, allocations: 19.98 kB / 0.5516 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005023/0.4596, allocations: 253 kB / 0.5518 GB, free: 11.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000309/0.4599, allocations: 203 kB / 0.552 GB, free: 11.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005247/0.4605, allocations: 332 kB / 0.5523 GB, free: 10.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/0.4605, allocations: 3.938 kB / 0.5523 GB, free: 10.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0008365/0.4613, allocations: 450.4 kB / 0.5527 GB, free: 10.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.4613, allocations: 8 kB / 0.5528 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4613, allocations: 4 kB / 0.5528 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001056/0.4615, allocations: 24.84 kB / 0.5528 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.4618, allocations: 91.89 kB / 0.5529 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.4629, allocations: 1.38 MB / 0.5542 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.4632, allocations: 15.94 kB / 0.5542 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.4632, allocations: 16.16 kB / 0.5542 GB, free: 8.535 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.0001671/0.4634, allocations: 210 kB / 0.5545 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.244e-05/0.4635, allocations: 51.34 kB / 0.5545 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.4636, allocations: 65.27 kB / 0.5546 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.4636, allocations: 4 kB / 0.5546 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4636, allocations: 3.938 kB / 0.5546 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.4637, allocations: 7.922 kB / 0.5546 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.4655, allocations: 1.067 MB / 0.5556 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4655, allocations: 4 kB / 0.5556 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.4659, allocations: 75.95 kB / 0.5557 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.111e-05/0.466, allocations: 16.86 kB / 0.5557 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.466, allocations: 11.98 kB / 0.5557 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.4671, allocations: 1.378 MB / 0.5571 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4671, allocations: 0 / 0.5571 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.4683, allocations: 0.6277 MB / 0.5577 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.4685, allocations: 132.4 kB / 0.5578 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.531e-05/0.4686, allocations: 16 kB / 0.5578 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.4689, allocations: 23.97 kB / 0.5578 GB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.14e-05/0.4689, allocations: 23.97 kB / 0.5579 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.469, allocations: 8 kB / 0.5579 GB, free: 4.559 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004914/0.4695, allocations: 362.9 kB / 0.5582 GB, free: 4.207 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4695, allocations: 0 / 0.5582 GB, free: 4.207 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007556/0.4702, allocations: 184 kB / 0.5584 GB, free: 4.027 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.001481/0.4717, allocations: 1.171 MB / 0.5595 GB, free: 2.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.4732, allocations: 0.7396 MB / 0.5603 GB, free: 2.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4732, allocations: 0 / 0.5603 GB, free: 2.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004266/0.4737, allocations: 275.6 kB / 0.5605 GB, free: 1.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000687/0.4744, allocations: 116.4 kB / 0.5606 GB, free: 1.664 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008168/0.4826, allocations: 4.993 MB / 0.5655 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.4831, allocations: 0.8902 MB / 0.5664 GB, free: 11.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002727/0.4834, allocations: 68.36 kB / 0.5664 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.4837, allocations: 227.4 kB / 0.5667 GB, free: 11.29 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4837, allocations: 0 / 0.5667 GB, free: 11.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.5209, allocations: 11.28 MB / 0.5777 GB, free: 172 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.74, allocations: 3.938 kB / 0.5777 GB, free: 168 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)