Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 175.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.5 MB / 230.3 MB, free: 7.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008692/0.0008692, allocations: 94.19 kB / 281.2 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.324e-05/2.342e-05, allocations: 4 kB / 337.1 MB, free: 9.895 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3836/0.4948, allocations: 117.4 MB / 0.4932 GB, free: 9.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.4952, allocations: 83.95 kB / 0.4932 GB, free: 9.066 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1193/0.6145, allocations: 46.42 MB / 0.5386 GB, free: 10.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.6145, allocations: 0 / 0.5386 GB, free: 10.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001238/0.6147, allocations: 44 kB / 0.5386 GB, free: 10.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.003739/0.6184, allocations: 1.93 MB / 0.5405 GB, free: 8.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.6185, allocations: 12.03 kB / 0.5405 GB, free: 8.418 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008552/0.6193, allocations: 305 kB / 0.5408 GB, free: 8.117 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.6216, allocations: 1.264 MB / 0.542 GB, free: 6.797 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.6219, allocations: 196.8 kB / 0.5422 GB, free: 6.586 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/0.6221, allocations: 115.9 kB / 0.5423 GB, free: 6.473 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002317/0.6244, allocations: 1.257 MB / 0.5436 GB, free: 5.215 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.627, allocations: 1.508 MB / 0.545 GB, free: 3.652 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.414e-05/0.6271, allocations: 7.844 kB / 0.545 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.6272, allocations: 8 kB / 0.5451 GB, free: 3.637 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.781e-05/0.6272, allocations: 47.95 kB / 0.5451 GB, free: 3.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2631/0.8904, allocations: 7.114 MB / 0.552 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002016/0.8924, allocations: 1.104 MB / 0.5531 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006067/0.893, allocations: 347.6 kB / 0.5535 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.37e-05/0.8931, allocations: 13.11 kB / 0.5535 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.8932, allocations: 41.31 kB / 0.5535 GB, free: 103 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 2.635e-06/0.8932, allocations: 4.25 kB / 0.5535 GB, free: 103 MB / 426.7 MB Notification: Performance of matching and sorting (n=111): time 0.01061/0.9038, allocations: 4.394 MB / 0.5578 GB, free: 102.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.9039, allocations: 90.78 kB / 0.5579 GB, free: 102.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.9057, allocations: 1.006 MB / 0.5589 GB, free: 101.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.2e-05/0.9058, allocations: 30.83 kB / 0.5589 GB, free: 101.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000759/0.9066, allocations: 0.9765 MB / 0.5599 GB, free: 101.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003531/0.907, allocations: 376 kB / 0.5602 GB, free: 101.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.907, allocations: 0 / 0.5602 GB, free: 101.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.9072, allocations: 369.8 kB / 0.5606 GB, free: 101 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009292/0.9081, allocations: 0.5173 MB / 0.5611 GB, free: 101 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.9093, allocations: 0.9412 MB / 0.562 GB, free: 100.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009491/0.9103, allocations: 0.5533 MB / 0.5625 GB, free: 100.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.9103, allocations: 4.344 kB / 0.5625 GB, free: 100.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002773/0.9131, allocations: 1.521 MB / 0.564 GB, free: 100.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001124/0.9142, allocations: 5.363 MB / 0.5693 GB, free: 94.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.9143, allocations: 13.84 kB / 0.5693 GB, free: 94.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001892/0.9145, allocations: 46.25 kB / 0.5693 GB, free: 94.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.9164, allocations: 436.5 kB / 0.5697 GB, free: 94.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008848/0.9173, allocations: 1.259 MB / 0.571 GB, free: 93.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.9191, allocations: 143.2 kB / 0.5711 GB, free: 93.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.9192, allocations: 63.89 kB / 0.5712 GB, free: 93.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.9193, allocations: 4.406 kB / 0.5712 GB, free: 93.63 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002436/0.9217, allocations: 1.317 MB / 0.5724 GB, free: 93.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.9217, allocations: 12.94 kB / 0.5725 GB, free: 93.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001095/0.9218, allocations: 44.3 kB / 0.5725 GB, free: 93.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/0.9236, allocations: 409.5 kB / 0.5729 GB, free: 93.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007192/0.9244, allocations: 1.25 MB / 0.5741 GB, free: 92.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.9259, allocations: 111.6 kB / 0.5742 GB, free: 92.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.9261, allocations: 64.03 kB / 0.5743 GB, free: 92.39 MB / 426.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: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,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 (194): * Single equations (assignments): 193 * 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.0003484/0.9264, allocations: 144.1 kB / 0.5744 GB, free: 92.28 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001991/0.9284, allocations: 1.012 MB / 0.5754 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002359/0.9287, allocations: 147.8 kB / 0.5755 GB, free: 92.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002146/0.9308, allocations: 1.079 MB / 0.5766 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.9308, allocations: 9.875 kB / 0.5766 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.9308, allocations: 1.781 kB / 0.5766 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.9309, allocations: 5.531 kB / 0.5766 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006597/0.9375, allocations: 3.243 MB / 0.5798 GB, free: 91.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.9375, allocations: 11 kB / 0.5798 GB, free: 91.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.9387, allocations: 289.6 kB / 0.5801 GB, free: 91.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.9388, allocations: 35.25 kB / 0.5801 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.767e-05/0.9389, allocations: 20.38 kB / 0.5801 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006619/0.9396, allocations: 1.248 MB / 0.5813 GB, free: 90.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/0.9396, allocations: 19.19 kB / 0.5814 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.942, allocations: 2.248 MB / 0.5836 GB, free: 88.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005751/0.9426, allocations: 323 kB / 0.5839 GB, free: 88.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/0.9428, allocations: 23.19 kB / 0.5839 GB, free: 88.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.9438, allocations: 127.7 kB / 0.584 GB, free: 88.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.944, allocations: 131 kB / 0.5841 GB, free: 88.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.565e-05/0.9441, allocations: 46.22 kB / 0.5842 GB, free: 88.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00103/0.9451, allocations: 0.7348 MB / 0.5849 GB, free: 87.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9451, allocations: 0 / 0.5849 GB, free: 87.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002342/0.9475, allocations: 0.5687 MB / 0.5855 GB, free: 87.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (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) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.003132/0.9506, allocations: 5.881 MB / 0.5912 GB, free: 82.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00337/0.954, allocations: 2.221 MB / 0.5934 GB, free: 81.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.954, allocations: 3.719 kB / 0.5934 GB, free: 81.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007776/0.9548, allocations: 0.5383 MB / 0.5939 GB, free: 81.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.9564, allocations: 305.6 kB / 0.5942 GB, free: 81.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006051/0.9625, allocations: 2.934 MB / 0.597 GB, free: 79.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/0.9633, allocations: 1.386 MB / 0.5984 GB, free: 79.05 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001866/0.9652, allocations: 326.7 kB / 0.5987 GB, free: 78.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008402/0.9661, allocations: 0.7362 MB / 0.5994 GB, free: 78.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.433e-06/0.9661, allocations: 0 / 0.5994 GB, free: 78.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07275/1.039, allocations: 32.95 MB / 0.6316 GB, free: 69.09 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.039, allocations: 182 kB / 0.6318 GB, free: 68.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.049/4.088, allocations: 0 / 0.6318 GB, free: 68.89 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat