Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008058/0.0008058, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.549e-05/2.557e-05, allocations: 0 / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.09573, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3647/0.4605, allocations: 116.1 MB / 486.2 MB, free: 9.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.4608, allocations: 82.25 kB / 486.3 MB, free: 9.531 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1061/0.5669, allocations: 42.72 MB / 0.5166 GB, free: 15.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.567, allocations: 0 / 0.5166 GB, free: 15.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001197/0.5671, allocations: 52.12 kB / 0.5167 GB, free: 15.6 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003165/0.5703, allocations: 1.694 MB / 0.5183 GB, free: 13.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.5703, allocations: 8.469 kB / 0.5183 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002894/0.5706, allocations: 236.5 kB / 0.5185 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000731/0.5714, allocations: 265.3 kB / 0.5188 GB, free: 13.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.5735, allocations: 1.173 MB / 0.5199 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.5736, allocations: 123.3 kB / 0.5201 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002327/0.5739, allocations: 175.9 kB / 0.5202 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002576/0.5765, allocations: 1.504 MB / 0.5217 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.214e-05/0.5765, allocations: 3.938 kB / 0.5217 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.5767, allocations: 68 kB / 0.5218 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-05/0.5767, allocations: 44 kB / 0.5218 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.5785, allocations: 0.9727 MB / 0.5228 GB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009072/0.5876, allocations: 6.767 MB / 0.5294 GB, free: 2.086 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.5891, allocations: 0.8795 MB / 0.5302 GB, free: 1.145 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.5895, allocations: 251.8 kB / 0.5305 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.5896, allocations: 8.562 kB / 0.5305 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.5896, allocations: 43.06 kB / 0.5305 GB, free: 0.832 MB / 410.7 MB Notification: Performance of pre-optimization done (n=61): time 2.986e-06/0.5896, allocations: 0 / 0.5305 GB, free: 0.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.2154/0.8051, allocations: 1.54 MB / 0.532 GB, free: 104.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.8052, allocations: 86.2 kB / 0.5321 GB, free: 104 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00203/0.8072, allocations: 1.066 MB / 0.5331 GB, free: 103.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.297e-05/0.8073, allocations: 41.33 kB / 0.5332 GB, free: 103.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005486/0.8079, allocations: 0.8979 MB / 0.5341 GB, free: 103.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.808, allocations: 241.7 kB / 0.5343 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.8081, allocations: 19.31 kB / 0.5343 GB, free: 103.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.445e-05/0.8082, allocations: 349.5 kB / 0.5346 GB, free: 103 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/0.8086, allocations: 243.6 kB / 0.5349 GB, free: 103 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005476/0.8091, allocations: 0.6437 MB / 0.5355 GB, free: 102.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005447/0.8097, allocations: 356.2 kB / 0.5358 GB, free: 102.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.8097, allocations: 6.281 kB / 0.5358 GB, free: 102.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001642/0.8113, allocations: 1.053 MB / 0.5369 GB, free: 102.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008941/0.8123, allocations: 5.379 MB / 0.5421 GB, free: 96.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.8123, allocations: 14.44 kB / 0.5421 GB, free: 96.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.8125, allocations: 45.19 kB / 0.5422 GB, free: 96.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.8135, allocations: 276 kB / 0.5424 GB, free: 96.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008903/0.8144, allocations: 1.297 MB / 0.5437 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009198/0.8153, allocations: 70.28 kB / 0.5438 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.8154, allocations: 53.59 kB / 0.5438 GB, free: 95.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.8154, allocations: 4.125 kB / 0.5438 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001382/0.8168, allocations: 0.891 MB / 0.5447 GB, free: 95.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.8169, allocations: 13.09 kB / 0.5447 GB, free: 95.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.817, allocations: 40.56 kB / 0.5448 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008369/0.8178, allocations: 260.8 kB / 0.545 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006272/0.8185, allocations: 1.291 MB / 0.5463 GB, free: 94.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000784/0.8193, allocations: 50.47 kB / 0.5463 GB, free: 94.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.604e-05/0.8193, allocations: 50.81 kB / 0.5464 GB, free: 94.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.000207/0.8195, allocations: 183.1 kB / 0.5465 GB, free: 94.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/0.8198, allocations: 138.3 kB / 0.5467 GB, free: 94.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.821, allocations: 0.5985 MB / 0.5472 GB, free: 94.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.821, allocations: 7.094 kB / 0.5473 GB, free: 94.08 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.821, allocations: 2.891 kB / 0.5473 GB, free: 94.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.8211, allocations: 4.812 kB / 0.5473 GB, free: 94.08 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.8245, allocations: 2.009 MB / 0.5492 GB, free: 93.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.8245, allocations: 6.344 kB / 0.5492 GB, free: 93.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006177/0.8251, allocations: 139.3 kB / 0.5494 GB, free: 93.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.79e-05/0.8252, allocations: 26.39 kB / 0.5494 GB, free: 93.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.321e-05/0.8253, allocations: 23.11 kB / 0.5494 GB, free: 93.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006252/0.8259, allocations: 1.279 MB / 0.5507 GB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8259, allocations: 2.25 kB / 0.5507 GB, free: 92.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.8274, allocations: 1.059 MB / 0.5517 GB, free: 91.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004256/0.8279, allocations: 267.8 kB / 0.552 GB, free: 91.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.828, allocations: 17.02 kB / 0.552 GB, free: 91.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006052/0.8286, allocations: 60.81 kB / 0.552 GB, free: 91.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.8288, allocations: 48.88 kB / 0.5521 GB, free: 91.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.8288, allocations: 18.27 kB / 0.5521 GB, free: 91.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001247/0.8301, allocations: 0.7985 MB / 0.5529 GB, free: 91.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.8301, allocations: 0 / 0.5529 GB, free: 91.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002579/0.8326, allocations: 0.5488 MB / 0.5534 GB, free: 91.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.00239/0.8351, allocations: 2.355 MB / 0.5557 GB, free: 90.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.8374, allocations: 1.362 MB / 0.557 GB, free: 89.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.8375, allocations: 4.812 kB / 0.557 GB, free: 89.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005238/0.838, allocations: 368 kB / 0.5574 GB, free: 89.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.8395, allocations: 302.9 kB / 0.5577 GB, free: 89.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.8439, allocations: 2.377 MB / 0.56 GB, free: 88.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007573/0.8447, allocations: 1.276 MB / 0.5612 GB, free: 88.15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001104/0.8458, allocations: 236.8 kB / 0.5615 GB, free: 88.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006684/0.8465, allocations: 0.6346 MB / 0.5621 GB, free: 88.1 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/0.8465, allocations: 0 / 0.5621 GB, free: 88.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05022/0.8967, allocations: 31.95 MB / 0.5933 GB, free: 84.39 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.897, allocations: 199.5 kB / 0.5935 GB, free: 84.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.857/3.754, allocations: 0 / 0.5935 GB, free: 84.16 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat