Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009924/0.0009924, allocations: 95.69 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 177.1 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004544/0.0004546, allocations: 8 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1079, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0106/0.1186, allocations: 9.608 MB / 338 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006742/0.1254, allocations: 3.226 MB / 341.3 MB, free: 7.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002213/0.1276, allocations: 35.94 kB / 341.3 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002403/0.1301, allocations: 0.5324 MB / 341.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003583/0.1337, allocations: 0.7517 MB / 342.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1352, allocations: 251.7 kB / 342.8 MB, free: 5.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005516/0.1407, allocations: 1.694 MB / 344.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/0.1426, allocations: 0.6794 MB / 345.2 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.1446, allocations: 0.6886 MB / 345.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001598/0.1462, allocations: 0.7581 MB / 346.6 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002994/0.1465, allocations: 100 kB / 346.7 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006391/0.1472, allocations: 140 kB / 346.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003581/0.1475, allocations: 290.7 kB / 347.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006715/0.1482, allocations: 404.7 kB / 347.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003029/0.1513, allocations: 2.13 MB / 349.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1513, allocations: 4 kB / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1513, allocations: 0 / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.214e-05/0.1514, allocations: 0 / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003832/0.1552, allocations: 1.832 MB / 351.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.1553, allocations: 8.031 kB / 351.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003784/0.1557, allocations: 227.9 kB / 351.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009337/0.1566, allocations: 257.4 kB / 352 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.1594, allocations: 1.064 MB / 353.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.1595, allocations: 119.1 kB / 353.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.1598, allocations: 159.9 kB / 353.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003803/0.1636, allocations: 1.465 MB / 354.8 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.905e-05/0.1637, allocations: 7.906 kB / 354.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001639/0.1638, allocations: 68 kB / 354.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.1639, allocations: 40 kB / 354.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.167, allocations: 1.014 MB / 355.9 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.1804, allocations: 6.168 MB / 362.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001824/0.1822, allocations: 0.5685 MB / 362.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.556e-05/0.1823, allocations: 12.7 kB / 362.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.894e-05/0.1824, allocations: 43.08 kB / 362.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 4.909e-06/0.1824, allocations: 3.938 kB / 362.7 MB, free: 1.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.007128/0.1896, allocations: 2.264 MB / 365 MB, free: 14.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/0.1897, allocations: 111.5 kB / 365.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/0.1919, allocations: 1.185 MB / 366.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.823e-05/0.192, allocations: 33.7 kB / 366.3 MB, free: 13.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008712/0.1929, allocations: 0.857 MB / 367.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/0.1933, allocations: 260.3 kB / 367.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.1934, allocations: 24 kB / 367.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.1935, allocations: 353.9 kB / 367.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007769/0.1943, allocations: 274.4 kB / 368.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009493/0.1953, allocations: 0.7264 MB / 368.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008154/0.1961, allocations: 398.9 kB / 369.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.1961, allocations: 4 kB / 369.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002676/0.1988, allocations: 1.213 MB / 370.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.1989, allocations: 15.98 kB / 370.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.409e-05/0.1989, allocations: 12 kB / 370.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004671/0.1994, allocations: 114.7 kB / 370.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008721/0.2003, allocations: 259.6 kB / 370.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004361/0.2047, allocations: 4.2 MB / 375 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.2059, allocations: 51.89 kB / 375 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.2061, allocations: 56 kB / 375.1 MB, free: 3.914 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008855/0.2069, allocations: 361.4 kB / 375.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003411/0.2073, allocations: 134.3 kB / 375.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.2092, allocations: 0.7943 MB / 376.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.2092, allocations: 8 kB / 376.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.2093, allocations: 4 kB / 376.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.2093, allocations: 0 / 376.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/0.214, allocations: 2.178 MB / 378.6 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/0.214, allocations: 8.125 kB / 378.6 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005998/0.2146, allocations: 131.8 kB / 378.7 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003954/0.215, allocations: 126.4 kB / 378.8 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.2152, allocations: 19.95 kB / 378.8 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2204/0.4356, allocations: 4.288 MB / 383.1 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.4356, allocations: 7.406 kB / 383.1 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/0.4384, allocations: 1.427 MB / 384.6 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006243/0.439, allocations: 259.2 kB / 384.8 MB, free: 45.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.4392, allocations: 18.39 kB / 384.8 MB, free: 45.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005509/0.4397, allocations: 40.17 kB / 384.9 MB, free: 45.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.4399, allocations: 65.28 kB / 384.9 MB, free: 45.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/0.44, allocations: 25.38 kB / 385 MB, free: 45.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001317/0.4413, allocations: 0.7799 MB / 385.7 MB, free: 45.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.001e-06/0.4413, allocations: 0 / 385.7 MB, free: 45.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001254/0.4426, allocations: 321.2 kB / 386.1 MB, free: 45.33 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002438/0.445, allocations: 2.939 MB / 389 MB, free: 43.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.447, allocations: 1.097 MB / 390.1 MB, free: 42.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.447, allocations: 1.844 kB / 390.1 MB, free: 42.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009231/0.4479, allocations: 0.6727 MB / 390.8 MB, free: 42.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.4494, allocations: 334.6 kB / 391.1 MB, free: 41.97 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01707/0.4665, allocations: 18.5 MB / 409.6 MB, free: 26.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.4676, allocations: 1.251 MB / 410.8 MB, free: 25.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009783/0.4686, allocations: 173.5 kB / 411 MB, free: 25.92 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006062/0.4692, allocations: 0.6149 MB / 411.6 MB, free: 25.43 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4692, allocations: 0 / 411.6 MB, free: 25.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04669/0.5159, allocations: 27.14 MB / 438.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/0.5161, allocations: 247.2 kB / 439 MB, free: 1.664 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.542/3.059, allocations: 0 / 439 MB, free: 1.664 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat