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.001114/0.001113, allocations: 122.2 kB / 17.78 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 201.2 kB / 18.72 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, 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.2213/0.2213, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 71.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2948, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005537/0.3003, allocations: 4.54 MB / 0.5349 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.3029, allocations: 1.651 MB / 0.5365 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002919/0.3032, allocations: 17.69 kB / 0.5366 GB, free: 8.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006928/0.3039, allocations: 298.2 kB / 0.5368 GB, free: 8.238 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003493/0.3042, allocations: 172.8 kB / 0.537 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.3047, allocations: 272.4 kB / 0.5373 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007871/0.3055, allocations: 0.8493 MB / 0.5381 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005432/0.306, allocations: 392.3 kB / 0.5385 GB, free: 7.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004108/0.3065, allocations: 310.4 kB / 0.5388 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003519/0.3068, allocations: 340.1 kB / 0.5391 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.836e-05/0.3069, allocations: 80.31 kB / 0.5392 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.3071, allocations: 80.56 kB / 0.5392 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.3072, allocations: 179 kB / 0.5394 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.3075, allocations: 365.9 kB / 0.5398 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000934/0.3085, allocations: 0.937 MB / 0.5407 GB, free: 5.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3085, allocations: 0 / 0.5407 GB, free: 5.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3085, allocations: 0 / 0.5407 GB, free: 5.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.3085, allocations: 4 kB / 0.5407 GB, free: 5.43 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.001609/0.3101, allocations: 1.038 MB / 0.5417 GB, free: 4.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3102, allocations: 9.469 kB / 0.5417 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.3103, allocations: 101.7 kB / 0.5418 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.3104, allocations: 89.53 kB / 0.5419 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007459/0.3112, allocations: 0.503 MB / 0.5424 GB, free: 4.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.3112, allocations: 45.38 kB / 0.5424 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.3113, allocations: 65.3 kB / 0.5425 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.3124, allocations: 0.6007 MB / 0.5431 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.3124, allocations: 1 kB / 0.5431 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-05/0.3125, allocations: 26.16 kB / 0.5431 GB, free: 3.562 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.3125, allocations: 18.08 kB / 0.5431 GB, free: 3.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009032/0.3135, allocations: 420 kB / 0.5435 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3165, allocations: 2.139 MB / 0.5456 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.3177, allocations: 0.5747 MB / 0.5462 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003343/0.318, allocations: 170.2 kB / 0.5463 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.3181, allocations: 3.812 kB / 0.5463 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.3181, allocations: 37 kB / 0.5464 GB, free: 1.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.633e-06/0.3181, allocations: 4 kB / 0.5464 GB, free: 1.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002373/0.3205, allocations: 1.147 MB / 0.5475 GB, free: 15.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.3205, allocations: 55.41 kB / 0.5475 GB, free: 15.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005822/0.3211, allocations: 0.5184 MB / 0.548 GB, free: 15.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.3211, allocations: 29.7 kB / 0.5481 GB, free: 15.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.3214, allocations: 356.7 kB / 0.5484 GB, free: 15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.467e-05/0.3215, allocations: 122.9 kB / 0.5485 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.3216, allocations: 82.08 kB / 0.5486 GB, free: 14.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3217, allocations: 362.8 kB / 0.549 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/0.322, allocations: 142.5 kB / 0.5491 GB, free: 14.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.3224, allocations: 224.8 kB / 0.5493 GB, free: 14.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006462/0.3231, allocations: 368.1 kB / 0.5497 GB, free: 13.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3231, allocations: 3.938 kB / 0.5497 GB, free: 13.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008879/0.324, allocations: 489.5 kB / 0.5501 GB, free: 13.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.324, allocations: 6.188 kB / 0.5501 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.324, allocations: 4 kB / 0.5501 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.3242, allocations: 20.84 kB / 0.5502 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/0.3246, allocations: 99.83 kB / 0.5503 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.3256, allocations: 1.38 MB / 0.5516 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.3259, allocations: 28.14 kB / 0.5516 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.3259, allocations: 16 kB / 0.5516 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003926/0.3263, allocations: 249 kB / 0.5519 GB, free: 11.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000296/0.3267, allocations: 210.9 kB / 0.5521 GB, free: 10.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005085/0.3272, allocations: 336 kB / 0.5524 GB, free: 10.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.256e-06/0.3272, allocations: 4 kB / 0.5524 GB, free: 10.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007424/0.3279, allocations: 450.6 kB / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.328, allocations: 8 kB / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.328, allocations: 0 / 0.5528 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.743e-05/0.3281, allocations: 25.19 kB / 0.5529 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.3284, allocations: 99.83 kB / 0.553 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.3295, allocations: 1.379 MB / 0.5543 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/0.3298, allocations: 19.92 kB / 0.5543 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.3298, allocations: 16 kB / 0.5543 GB, free: 8.477 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.0001774/0.33, allocations: 206 kB / 0.5545 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.618e-05/0.3301, allocations: 51.67 kB / 0.5546 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.3302, allocations: 61.38 kB / 0.5546 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3302, allocations: 8 kB / 0.5547 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.3303, allocations: 7.875 kB / 0.5547 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3303, allocations: 0 / 0.5547 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.332, allocations: 1.059 MB / 0.5557 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.332, allocations: 0 / 0.5557 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.3323, allocations: 71.89 kB / 0.5558 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.809e-05/0.3324, allocations: 20.84 kB / 0.5558 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.3325, allocations: 12 kB / 0.5558 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009387/0.3334, allocations: 1.386 MB / 0.5571 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3334, allocations: 0 / 0.5571 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.3345, allocations: 0.6281 MB / 0.5578 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.3347, allocations: 140.7 kB / 0.5579 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/0.3347, allocations: 8 kB / 0.5579 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.335, allocations: 23.97 kB / 0.5579 GB, free: 4.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.3351, allocations: 31.84 kB / 0.558 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.3351, allocations: 8 kB / 0.558 GB, free: 4.504 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004101/0.3355, allocations: 366.9 kB / 0.5583 GB, free: 4.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3355, allocations: 0 / 0.5583 GB, free: 4.148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006292/0.3362, allocations: 180 kB / 0.5585 GB, free: 3.973 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.001338/0.3375, allocations: 1.18 MB / 0.5596 GB, free: 2.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.3388, allocations: 0.7518 MB / 0.5604 GB, free: 1.977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3388, allocations: 0 / 0.5604 GB, free: 1.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004239/0.3393, allocations: 270.5 kB / 0.5606 GB, free: 1.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/0.3399, allocations: 100.9 kB / 0.5607 GB, free: 1.605 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006653/0.3466, allocations: 5.007 MB / 0.5656 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.3471, allocations: 0.8902 MB / 0.5665 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.3473, allocations: 64.36 kB / 0.5665 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000292/0.3476, allocations: 231.4 kB / 0.5668 GB, free: 11.22 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3476, allocations: 0 / 0.5668 GB, free: 11.22 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03218/0.3798, allocations: 11.12 MB / 0.5776 GB, free: 272 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.39, allocations: 3.938 kB / 0.5776 GB, free: 268 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)