Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.002127/0.002127, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 90.06 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.819e-05, allocations: 8 kB / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3833, allocations: 47.56 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.5444, allocations: 93.82 MB / 456.3 MB, free: 8.359 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003425/0.5449, allocations: 83.89 kB / 456.3 MB, free: 8.277 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1992/0.7441, allocations: 40.24 MB / 496.6 MB, free: 15.84 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.7441, allocations: 0 / 496.6 MB, free: 15.84 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.7443, allocations: 35.94 kB / 496.6 MB, free: 15.81 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004593/0.7489, allocations: 1.562 MB / 498.2 MB, free: 14.19 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.749, allocations: 8.031 kB / 498.2 MB, free: 14.18 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.7504, allocations: 257.6 kB / 498.4 MB, free: 13.93 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003705/0.7542, allocations: 1.102 MB / 499.5 MB, free: 12.78 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.642e-05/0.7543, allocations: 48 kB / 499.6 MB, free: 12.73 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003284/0.7547, allocations: 103.9 kB / 499.7 MB, free: 12.63 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002725/0.7574, allocations: 0.8106 MB / 0.4888 GB, free: 11.82 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003446/0.7609, allocations: 1.203 MB / 0.4899 GB, free: 10.55 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-05/0.761, allocations: 11.89 kB / 0.4899 GB, free: 10.54 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.7612, allocations: 4 kB / 0.4899 GB, free: 10.53 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/0.7612, allocations: 36 kB / 0.49 GB, free: 10.5 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/0.775, allocations: 6.362 MB / 0.4962 GB, free: 3.789 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009827/0.7761, allocations: 349 kB / 0.4965 GB, free: 3.438 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007768/0.7769, allocations: 190 kB / 0.4967 GB, free: 3.25 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.358e-05/0.777, allocations: 8.438 kB / 0.4967 GB, free: 3.242 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007416/0.7778, allocations: 240.8 kB / 0.4969 GB, free: 2.98 MB / 395.1 MB Notification: Performance of pre-optimization done (n=50): time 3.417e-06/0.7778, allocations: 0 / 0.4969 GB, free: 2.98 MB / 395.1 MB Notification: Performance of matching and sorting (n=56): time 0.004353/0.7821, allocations: 1.51 MB / 0.4984 GB, free: 1.41 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.7823, allocations: 192.5 kB / 0.4986 GB, free: 1.18 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001935/0.7843, allocations: 0.8399 MB / 0.4994 GB, free: 336 kB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.7844, allocations: 33.64 kB / 0.4995 GB, free: 296 kB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2842/1.069, allocations: 0.8728 MB / 0.5003 GB, free: 101.5 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003245/1.069, allocations: 200.3 kB / 0.5005 GB, free: 101.4 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/1.069, allocations: 0 / 0.5005 GB, free: 101.4 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/1.069, allocations: 361.4 kB / 0.5008 GB, free: 101.1 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006654/1.07, allocations: 185.2 kB / 0.501 GB, free: 101.1 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008718/1.071, allocations: 0.7486 MB / 0.5018 GB, free: 100.3 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008166/1.072, allocations: 324 kB / 0.5021 GB, free: 100.3 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-05/1.072, allocations: 5.812 kB / 0.5021 GB, free: 100.3 MB / 395.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00254/1.074, allocations: 0.883 MB / 0.5029 GB, free: 100.2 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.237e-05/1.074, allocations: 43.06 kB / 0.503 GB, free: 100.2 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-05/1.074, allocations: 22.81 kB / 0.503 GB, free: 100.2 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/1.075, allocations: 64.23 kB / 0.5031 GB, free: 100.2 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/1.076, allocations: 270.2 kB / 0.5033 GB, free: 100.2 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/1.079, allocations: 2.477 MB / 0.5057 GB, free: 97.82 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/1.08, allocations: 52.48 kB / 0.5058 GB, free: 97.82 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/1.081, allocations: 64.05 kB / 0.5058 GB, free: 97.82 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002982/1.081, allocations: 157.4 kB / 0.506 GB, free: 97.71 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001353/1.082, allocations: 458.2 kB / 0.5064 GB, free: 97.59 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002098/1.082, allocations: 119.6 kB / 0.5065 GB, free: 97.53 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/1.084, allocations: 465.8 kB / 0.507 GB, free: 97.45 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/1.084, allocations: 8.531 kB / 0.507 GB, free: 97.45 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.084, allocations: 1.062 kB / 0.507 GB, free: 97.45 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/1.084, allocations: 3.844 kB / 0.507 GB, free: 97.45 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004286/1.088, allocations: 1.668 MB / 0.5086 GB, free: 96.95 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/1.088, allocations: 3.594 kB / 0.5086 GB, free: 96.95 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008573/1.089, allocations: 103.9 kB / 0.5087 GB, free: 96.95 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002478/1.089, allocations: 46.44 kB / 0.5088 GB, free: 96.93 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.436e-05/1.089, allocations: 10.12 kB / 0.5088 GB, free: 96.93 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/1.091, allocations: 2.449 MB / 0.5112 GB, free: 94.55 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/1.091, allocations: 8.906 kB / 0.5112 GB, free: 94.55 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/1.093, allocations: 1.019 MB / 0.5122 GB, free: 93.95 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007502/1.094, allocations: 229.3 kB / 0.5124 GB, free: 93.8 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/1.094, allocations: 6.859 kB / 0.5124 GB, free: 93.8 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008951/1.095, allocations: 25.75 kB / 0.5124 GB, free: 93.8 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/1.096, allocations: 59.44 kB / 0.5125 GB, free: 93.79 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.777e-05/1.096, allocations: 18.91 kB / 0.5125 GB, free: 93.79 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001408/1.097, allocations: 0.6123 MB / 0.5131 GB, free: 93.68 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.01e-07/1.097, allocations: 4.688 kB / 0.5131 GB, free: 93.68 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002322/1.099, allocations: 276.8 kB / 0.5134 GB, free: 93.68 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002816/1.102, allocations: 2.727 MB / 0.516 GB, free: 91.57 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/1.104, allocations: 0.8094 MB / 0.5168 GB, free: 91.3 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.104, allocations: 1.344 kB / 0.5168 GB, free: 91.3 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/1.105, allocations: 409.3 kB / 0.5172 GB, free: 91.1 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/1.108, allocations: 275.6 kB / 0.5175 GB, free: 91.09 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007478/1.115, allocations: 2.078 MB / 0.5195 GB, free: 90.21 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009716/1.116, allocations: 1.213 MB / 0.5207 GB, free: 89.48 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/1.117, allocations: 0.5781 MB / 0.5213 GB, free: 89.47 MB / 395.1 MB Notification: Performance of SimCode: time 1.543e-06/1.117, allocations: 3.938 kB / 0.5213 GB, free: 89.47 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.171/4.289, allocations: 36.38 MB / 0.5568 GB, free: 78.91 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat