Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001877, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000833/0.000833, allocations: 96.58 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.597e-05/1.601e-05, allocations: 0 / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 51.46 MB / 395.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.5199, allocations: 117.2 MB / 0.5004 GB, free: 8.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.5202, allocations: 83.94 kB / 0.5005 GB, free: 8.109 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09354/0.6137, allocations: 38.62 MB / 0.5382 GB, free: 6.418 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6138, allocations: 0 / 0.5382 GB, free: 6.418 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.164e-05/0.6139, allocations: 36 kB / 0.5382 GB, free: 6.383 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.002599/0.6165, allocations: 1.522 MB / 0.5397 GB, free: 4.812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.6165, allocations: 15.97 kB / 0.5398 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006855/0.6172, allocations: 241.7 kB / 0.54 GB, free: 4.559 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001818/0.619, allocations: 1.043 MB / 0.541 GB, free: 3.469 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.739e-05/0.6191, allocations: 56 kB / 0.5411 GB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.6193, allocations: 99.89 kB / 0.5411 GB, free: 3.316 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001559/0.6209, allocations: 0.7753 MB / 0.5419 GB, free: 2.539 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.6229, allocations: 1.136 MB / 0.543 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.308e-05/0.6229, allocations: 11.84 kB / 0.543 GB, free: 1.336 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.313e-05/0.623, allocations: 0 / 0.543 GB, free: 1.336 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.984e-05/0.6231, allocations: 36 kB / 0.5431 GB, free: 1.301 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007909/0.631, allocations: 5.857 MB / 0.5488 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.6321, allocations: 0.6042 MB / 0.5494 GB, free: 10.51 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.6324, allocations: 190.2 kB / 0.5496 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.6324, allocations: 8.422 kB / 0.5496 GB, free: 10.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.6325, allocations: 43 kB / 0.5496 GB, free: 10.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.595e-06/0.6325, allocations: 0 / 0.5496 GB, free: 10.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.002587/0.6351, allocations: 1.26 MB / 0.5508 GB, free: 8.945 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.6352, allocations: 85.55 kB / 0.5509 GB, free: 8.844 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.6365, allocations: 0.7964 MB / 0.5517 GB, free: 8.031 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/0.6365, allocations: 25.7 kB / 0.5517 GB, free: 8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006277/0.6371, allocations: 0.8127 MB / 0.5525 GB, free: 7.176 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.6373, allocations: 197.2 kB / 0.5527 GB, free: 6.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.6374, allocations: 0 / 0.5527 GB, free: 6.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.6375, allocations: 345.9 kB / 0.553 GB, free: 6.637 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.6379, allocations: 186.6 kB / 0.5532 GB, free: 6.453 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007011/0.6386, allocations: 0.5671 MB / 0.5538 GB, free: 5.699 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004745/0.639, allocations: 285.9 kB / 0.554 GB, free: 5.426 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.6391, allocations: 4 kB / 0.554 GB, free: 5.422 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001348/0.6404, allocations: 0.8118 MB / 0.5548 GB, free: 4.598 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00268/0.6431, allocations: 5.141 MB / 0.5598 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.6431, allocations: 12 kB / 0.5599 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/0.6434, allocations: 36.86 kB / 0.5599 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.6442, allocations: 235.6 kB / 0.5601 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.6454, allocations: 1.247 MB / 0.5613 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/0.6462, allocations: 36.05 kB / 0.5614 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.369e-05/0.6463, allocations: 47.94 kB / 0.5614 GB, free: 13.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.6463, allocations: 5.719 kB / 0.5614 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001022/0.6473, allocations: 0.6581 MB / 0.5621 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.6473, allocations: 16.88 kB / 0.5621 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.83e-05/0.6474, allocations: 44.84 kB / 0.5621 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/0.6481, allocations: 219.6 kB / 0.5623 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007441/0.6488, allocations: 1.244 MB / 0.5635 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005331/0.6494, allocations: 27.92 kB / 0.5636 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.662e-05/0.6495, allocations: 44 kB / 0.5636 GB, free: 10.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.6496, allocations: 141 kB / 0.5638 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006827/0.6503, allocations: 455.6 kB / 0.5642 GB, free: 10.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.6505, allocations: 114.7 kB / 0.5643 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008318/0.6513, allocations: 467.6 kB / 0.5647 GB, free: 9.777 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.6513, allocations: 4 kB / 0.5647 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.6513, allocations: 0 / 0.5647 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.6513, allocations: 3.984 kB / 0.5648 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.6536, allocations: 1.543 MB / 0.5663 GB, free: 8.152 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.6536, allocations: 0 / 0.5663 GB, free: 8.152 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005253/0.6542, allocations: 124 kB / 0.5664 GB, free: 8.031 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.989e-05/0.6543, allocations: 20.86 kB / 0.5664 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.6543, allocations: 11.98 kB / 0.5664 GB, free: 7.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000811/0.6551, allocations: 1.221 MB / 0.5676 GB, free: 6.664 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6551, allocations: 3.938 kB / 0.5676 GB, free: 6.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.6562, allocations: 0.8658 MB / 0.5684 GB, free: 5.719 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.6565, allocations: 227.7 kB / 0.5687 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.6566, allocations: 8 kB / 0.5687 GB, free: 5.469 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/0.6571, allocations: 35.95 kB / 0.5687 GB, free: 5.434 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.6572, allocations: 40.34 kB / 0.5687 GB, free: 5.395 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.6573, allocations: 20 kB / 0.5688 GB, free: 5.375 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008162/0.6581, allocations: 0.585 MB / 0.5693 GB, free: 4.781 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6581, allocations: 0 / 0.5693 GB, free: 4.781 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001507/0.6596, allocations: 424 kB / 0.5697 GB, free: 4.367 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001993/0.6616, allocations: 2.153 MB / 0.5718 GB, free: 2.141 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.6635, allocations: 1.101 MB / 0.5729 GB, free: 1.023 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.6635, allocations: 7.938 kB / 0.5729 GB, free: 1.016 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.6639, allocations: 301.4 kB / 0.5732 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.6651, allocations: 228.7 kB / 0.5734 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2627/0.9278, allocations: 1.983 MB / 0.5754 GB, free: 96.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.9285, allocations: 1.201 MB / 0.5765 GB, free: 96.19 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001012/0.9295, allocations: 189.8 kB / 0.5767 GB, free: 96.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007074/0.9302, allocations: 0.5402 MB / 0.5772 GB, free: 96.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/0.9302, allocations: 3.562 kB / 0.5773 GB, free: 96.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05449/0.9847, allocations: 23.01 MB / 0.5997 GB, free: 95.01 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.9849, allocations: 175.7 kB / 0.5999 GB, free: 94.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.799/3.784, allocations: 2.672 kB / 0.5999 GB, free: 94.82 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat