Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.001539/0.001539, allocations: 182.8 kB / 15.76 MB, free: 6.367 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.559/1.559, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009236/0.0009237, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2544/0.2544, allocations: 43.56 MB / 362.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003563/0.0003563, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1463, allocations: 58.86 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5463/0.6927, allocations: 123.1 MB / 0.599 GB, free: 9.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000465/0.6933, allocations: 83.39 kB / 0.5991 GB, free: 9.047 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.187/0.8803, allocations: 61.84 MB / 0.6595 GB, free: 3.043 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.889e-06/0.8803, allocations: 0 / 0.6595 GB, free: 3.043 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005283/0.8809, allocations: 91.81 kB / 0.6596 GB, free: 2.953 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01364/0.8945, allocations: 3.272 MB / 0.6628 GB, free: 15.61 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.053e-05/0.8946, allocations: 15.97 kB / 0.6628 GB, free: 15.59 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002773/0.8974, allocations: 413 kB / 0.6632 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003271/0.9007, allocations: 407.3 kB / 0.6636 GB, free: 14.78 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008801/0.9095, allocations: 2.172 MB / 0.6657 GB, free: 12.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003047/0.9099, allocations: 217.6 kB / 0.6659 GB, free: 12.34 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001446/0.9114, allocations: 283.9 kB / 0.6662 GB, free: 12.06 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/0.9233, allocations: 3.698 MB / 0.6698 GB, free: 8.215 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.9235, allocations: 4 kB / 0.6698 GB, free: 8.211 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003242/0.9238, allocations: 124 kB / 0.6699 GB, free: 8.09 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001586/0.924, allocations: 129.5 kB / 0.67 GB, free: 7.961 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006029/0.93, allocations: 3.024 MB / 0.673 GB, free: 4.926 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0236/0.9536, allocations: 11.65 MB / 0.6844 GB, free: 8.969 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004344/0.958, allocations: 2.243 MB / 0.6866 GB, free: 6.617 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004299/0.9585, allocations: 223.4 kB / 0.6868 GB, free: 6.363 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.9586, allocations: 51.88 kB / 0.6868 GB, free: 6.305 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.468e-06/0.9586, allocations: 0 / 0.6868 GB, free: 6.305 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.0203/0.9789, allocations: 8.093 MB / 0.6947 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.979, allocations: 68.72 kB / 0.6948 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/0.9828, allocations: 1.709 MB / 0.6965 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002216/0.9831, allocations: 49.7 kB / 0.6965 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.9844, allocations: 1.359 MB / 0.6978 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006296/0.985, allocations: 0.5314 MB / 0.6984 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.9851, allocations: 36 kB / 0.6984 GB, free: 10.31 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002302/0.9854, allocations: 377.8 kB / 0.6988 GB, free: 9.938 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.9869, allocations: 0.9096 MB / 0.6996 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.9888, allocations: 1.338 MB / 0.7009 GB, free: 7.508 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.9906, allocations: 1.128 MB / 0.702 GB, free: 6.383 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.9907, allocations: 4 kB / 0.7021 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006146/0.9968, allocations: 2.958 MB / 0.7049 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.9969, allocations: 12 kB / 0.705 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.9969, allocations: 12 kB / 0.705 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.9983, allocations: 450.2 kB / 0.7054 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001923/1, allocations: 455.3 kB / 0.7058 GB, free: 2.484 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.383/1.383, allocations: 7.191 MB / 0.7128 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0026/1.386, allocations: 130.6 kB / 0.713 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/1.386, allocations: 74.52 kB / 0.713 GB, free: 123.5 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (204): * Single equations (assignments): 201 * 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: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003395/1.39, allocations: 0.9032 MB / 0.7139 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/1.391, allocations: 210.4 kB / 0.7141 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008143/1.399, allocations: 3.026 MB / 0.7171 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/1.399, allocations: 15.78 kB / 0.7171 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-05/1.399, allocations: 7.875 kB / 0.7171 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.567e-05/1.399, allocations: 9.266 kB / 0.7171 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.414, allocations: 6.17 MB / 0.7231 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/1.414, allocations: 6.172 kB / 0.7231 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/1.415, allocations: 237.8 kB / 0.7234 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002561/1.418, allocations: 0.832 MB / 0.7242 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/1.418, allocations: 39.55 kB / 0.7242 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01414/1.432, allocations: 10.54 MB / 0.7345 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.432, allocations: 0 / 0.7345 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007193/1.44, allocations: 4.425 MB / 0.7388 GB, free: 118.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002054/1.442, allocations: 0.4909 MB / 0.7393 GB, free: 118 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/1.442, allocations: 35.25 kB / 0.7394 GB, free: 118 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/1.443, allocations: 102 kB / 0.7394 GB, free: 118 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004288/1.444, allocations: 120.8 kB / 0.7396 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.444, allocations: 47.73 kB / 0.7396 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002536/1.446, allocations: 1.315 MB / 0.7409 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.21e-07/1.446, allocations: 0 / 0.7409 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002802/1.449, allocations: 0.6386 MB / 0.7415 GB, free: 117.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007036/1.456, allocations: 5.84 MB / 0.7472 GB, free: 114.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004406/1.461, allocations: 2.673 MB / 0.7498 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/1.461, allocations: 3.5 kB / 0.7498 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002572/1.463, allocations: 1.693 MB / 0.7515 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/1.466, allocations: 0.4885 MB / 0.752 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03237/1.498, allocations: 26.67 MB / 0.778 GB, free: 93.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002451/1.501, allocations: 2.274 MB / 0.7802 GB, free: 92.62 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001991/1.503, allocations: 466.8 kB / 0.7807 GB, free: 92.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/1.504, allocations: 1.124 MB / 0.7818 GB, free: 91.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.583e-06/1.504, allocations: 0 / 0.7818 GB, free: 91.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09093/1.595, allocations: 56.92 MB / 0.8374 GB, free: 53.52 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/1.596, allocations: 221.8 kB / 0.8376 GB, free: 53.28 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.103/5.698, allocations: 0 / 0.8376 GB, free: 53.28 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat