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.001468/0.001468, allocations: 118.2 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.001928/0.001929, allocations: 206 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.35/1.35, 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.2224/0.2224, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 71.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3446, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.006278/0.3509, allocations: 4.029 MB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.3537, allocations: 1.489 MB / 0.5359 GB, free: 9.012 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005117/0.3543, allocations: 17.56 kB / 0.5359 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008025/0.3551, allocations: 261.3 kB / 0.5361 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004638/0.3556, allocations: 142.1 kB / 0.5363 GB, free: 8.688 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.356, allocations: 190.1 kB / 0.5365 GB, free: 8.523 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009698/0.357, allocations: 0.6423 MB / 0.5371 GB, free: 8.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004613/0.3575, allocations: 275.8 kB / 0.5374 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.358, allocations: 240.6 kB / 0.5376 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004746/0.3585, allocations: 263.8 kB / 0.5378 GB, free: 7.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.3586, allocations: 61.19 kB / 0.5379 GB, free: 7.613 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.3587, allocations: 62.22 kB / 0.538 GB, free: 7.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.3589, allocations: 129.3 kB / 0.5381 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002765/0.3591, allocations: 292.5 kB / 0.5384 GB, free: 7.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008068/0.36, allocations: 0.7066 MB / 0.539 GB, free: 6.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.36, allocations: 1.062 kB / 0.539 GB, free: 6.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.36, allocations: 4 kB / 0.5391 GB, free: 6.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.36, allocations: 0 / 0.5391 GB, free: 6.73 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.001265/0.3613, allocations: 0.8524 MB / 0.5399 GB, free: 6.012 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.3613, allocations: 9.969 kB / 0.5399 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.66e-05/0.3614, allocations: 85.17 kB / 0.54 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.883e-05/0.3615, allocations: 66.64 kB / 0.54 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.362, allocations: 412.6 kB / 0.5404 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.3621, allocations: 31.84 kB / 0.5405 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.3621, allocations: 63.89 kB / 0.5405 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006982/0.3628, allocations: 453 kB / 0.541 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.3629, allocations: 1.125 kB / 0.541 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.3629, allocations: 19.66 kB / 0.541 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.3629, allocations: 11.16 kB / 0.541 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/0.3636, allocations: 312.1 kB / 0.5413 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.3659, allocations: 1.656 MB / 0.5429 GB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007808/0.3667, allocations: 385.8 kB / 0.5433 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.3669, allocations: 118.4 kB / 0.5434 GB, free: 3.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.3669, allocations: 3.625 kB / 0.5434 GB, free: 3.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.367, allocations: 40.72 kB / 0.5434 GB, free: 3.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.367, allocations: 0 / 0.5434 GB, free: 3.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001596/0.3686, allocations: 0.8954 MB / 0.5443 GB, free: 2.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.3686, allocations: 58.84 kB / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.3691, allocations: 397.6 kB / 0.5447 GB, free: 2.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.3691, allocations: 31.17 kB / 0.5448 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.3693, allocations: 282 kB / 0.545 GB, free: 2.023 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.961e-05/0.3694, allocations: 94.05 kB / 0.5451 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.826e-05/0.3695, allocations: 62.2 kB / 0.5452 GB, free: 1.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3696, allocations: 355.5 kB / 0.5455 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.3698, allocations: 97.09 kB / 0.5456 GB, free: 1.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.37, allocations: 160.7 kB / 0.5458 GB, free: 1.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.3705, allocations: 254 kB / 0.546 GB, free: 1.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3705, allocations: 1.094 kB / 0.546 GB, free: 1.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000597/0.3711, allocations: 356.6 kB / 0.5464 GB, free: 1.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.3711, allocations: 7.906 kB / 0.5464 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3711, allocations: 2.188 kB / 0.5464 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001344/0.3713, allocations: 28.62 kB / 0.5464 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.3715, allocations: 66.12 kB / 0.5465 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.3725, allocations: 1.383 MB / 0.5478 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.3727, allocations: 19.92 kB / 0.5478 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.3728, allocations: 12 kB / 0.5478 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002618/0.373, allocations: 204.1 kB / 0.548 GB, free: 15.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001892/0.3732, allocations: 148.8 kB / 0.5482 GB, free: 15.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003241/0.3736, allocations: 239.6 kB / 0.5484 GB, free: 14.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.413e-06/0.3736, allocations: 0 / 0.5484 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005122/0.3741, allocations: 338.2 kB / 0.5487 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/0.3741, allocations: 8 kB / 0.5487 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-06/0.3741, allocations: 0 / 0.5487 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.02e-05/0.3742, allocations: 24.84 kB / 0.5488 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.3745, allocations: 67.91 kB / 0.5488 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000893/0.3754, allocations: 1.387 MB / 0.5502 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.3755, allocations: 12.16 kB / 0.5502 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.3756, allocations: 12 kB / 0.5502 GB, free: 12.82 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.0001203/0.3757, allocations: 200.1 kB / 0.5504 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.501e-05/0.3758, allocations: 39.72 kB / 0.5504 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.711e-05/0.3758, allocations: 47.5 kB / 0.5505 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3758, allocations: 0 / 0.5505 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3759, allocations: 0 / 0.5505 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3759, allocations: 0 / 0.5505 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.377, allocations: 0.8431 MB / 0.5513 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.377, allocations: 8 kB / 0.5513 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.3773, allocations: 55.91 kB / 0.5514 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.463e-05/0.3774, allocations: 28.84 kB / 0.5514 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.3774, allocations: 11.94 kB / 0.5514 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008767/0.3783, allocations: 1.371 MB / 0.5527 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3783, allocations: 0 / 0.5527 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.379, allocations: 493.7 kB / 0.5532 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.277e-05/0.3791, allocations: 116.9 kB / 0.5533 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.3792, allocations: 8 kB / 0.5533 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.3794, allocations: 15.98 kB / 0.5533 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.3794, allocations: 19.92 kB / 0.5534 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.3795, allocations: 11.94 kB / 0.5534 GB, free: 9.312 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002818/0.3797, allocations: 279.2 kB / 0.5536 GB, free: 9.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3798, allocations: 4 kB / 0.5536 GB, free: 9.039 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005387/0.3803, allocations: 144 kB / 0.5538 GB, free: 8.898 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.0009872/0.3813, allocations: 1.02 MB / 0.5548 GB, free: 7.844 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009658/0.3823, allocations: 0.5946 MB / 0.5553 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3823, allocations: 0 / 0.5553 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.3826, allocations: 231.5 kB / 0.5556 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.3832, allocations: 82.62 kB / 0.5556 GB, free: 6.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.3883, allocations: 3.958 MB / 0.5595 GB, free: 2.801 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.3887, allocations: 0.8347 MB / 0.5603 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.3889, allocations: 39.25 kB / 0.5604 GB, free: 1.902 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.3891, allocations: 159.4 kB / 0.5605 GB, free: 1.746 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3891, allocations: 8 kB / 0.5605 GB, free: 1.738 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03131/0.4204, allocations: 8.363 MB / 0.5687 GB, free: 9.535 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.207/9.627, allocations: 14.17 kB / 0.5687 GB, free: 9.523 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled_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_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)