Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.001237/0.001237, allocations: 169.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 221.5 MB / 230.7 MB, free: 7.559 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.001002/0.001002, allocations: 93.3 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2081/0.2081, allocations: 44.14 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.22e-05/2.209e-05, allocations: 224 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.144, allocations: 61.91 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4681/0.6121, allocations: 122.8 MB / 0.6147 GB, free: 5.496 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.6125, allocations: 75.97 kB / 0.6147 GB, free: 5.422 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1702/0.7827, allocations: 61.48 MB / 0.6748 GB, free: 7.598 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7828, allocations: 0 / 0.6748 GB, free: 7.598 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004356/0.7832, allocations: 87.86 kB / 0.6749 GB, free: 7.512 MB / 490.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.00941/0.7926, allocations: 2.927 MB / 0.6777 GB, free: 4.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.7927, allocations: 11.98 kB / 0.6777 GB, free: 4.508 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/0.7955, allocations: 407.5 kB / 0.6781 GB, free: 4.105 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006882/0.8024, allocations: 2.149 MB / 0.6802 GB, free: 1.902 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.8026, allocations: 104.3 kB / 0.6803 GB, free: 1.801 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.8037, allocations: 168 kB / 0.6805 GB, free: 1.637 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006795/0.8105, allocations: 2.729 MB / 0.6831 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009815/0.8204, allocations: 3.215 MB / 0.6863 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001455/0.8206, allocations: 11.84 kB / 0.6863 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007005/0.8213, allocations: 0 / 0.6863 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001955/0.8215, allocations: 145.4 kB / 0.6864 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02097/0.8425, allocations: 11.08 MB / 0.6973 GB, free: 24 kB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003577/0.8461, allocations: 2.184 MB / 0.6994 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/0.8476, allocations: 1.036 MB / 0.7004 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003805/0.848, allocations: 227.5 kB / 0.7006 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.848, allocations: 47.88 kB / 0.7007 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 4.559e-06/0.848, allocations: 0 / 0.7007 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.01047/0.8585, allocations: 5.594 MB / 0.7061 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.8586, allocations: 76.66 kB / 0.7062 GB, free: 6.645 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.8611, allocations: 1.444 MB / 0.7076 GB, free: 5.203 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.8613, allocations: 25.7 kB / 0.7076 GB, free: 5.172 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.8624, allocations: 1.35 MB / 0.709 GB, free: 3.805 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00059/0.863, allocations: 0.5311 MB / 0.7095 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.599e-05/0.8631, allocations: 0 / 0.7095 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000247/0.8633, allocations: 377.9 kB / 0.7098 GB, free: 2.891 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.8646, allocations: 0.8513 MB / 0.7107 GB, free: 2.039 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.8662, allocations: 1.28 MB / 0.7119 GB, free: 0.5781 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2877/1.154, allocations: 1.073 MB / 0.713 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.932e-05/1.154, allocations: 5 kB / 0.713 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.004747/1.159, allocations: 2.741 MB / 0.7156 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/1.159, allocations: 10.97 kB / 0.7157 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/1.159, allocations: 13.39 kB / 0.7157 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/1.16, allocations: 433.8 kB / 0.7161 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/1.162, allocations: 468.4 kB / 0.7165 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006219/1.168, allocations: 6.739 MB / 0.7231 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002403/1.17, allocations: 89.52 kB / 0.7232 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002977/1.171, allocations: 76.69 kB / 0.7233 GB, free: 129.8 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 207 * 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.0004723/1.171, allocations: 157.2 kB / 0.7234 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006146/1.177, allocations: 2.662 MB / 0.726 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006073/1.178, allocations: 194.9 kB / 0.7262 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005357/1.183, allocations: 2.849 MB / 0.729 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/1.183, allocations: 19.39 kB / 0.729 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/1.183, allocations: 11.47 kB / 0.729 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.259e-05/1.183, allocations: 7.594 kB / 0.729 GB, free: 129.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/1.194, allocations: 5.724 MB / 0.7346 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/1.194, allocations: 3.125 kB / 0.7346 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/1.195, allocations: 259.5 kB / 0.7349 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/1.197, allocations: 0.8407 MB / 0.7357 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/1.198, allocations: 25.59 kB / 0.7357 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009466/1.207, allocations: 10 MB / 0.7455 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/1.207, allocations: 9.672 kB / 0.7455 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005685/1.213, allocations: 4.341 MB / 0.7497 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/1.214, allocations: 496.4 kB / 0.7502 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/1.214, allocations: 7.781 kB / 0.7502 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/1.215, allocations: 83.42 kB / 0.7503 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/1.216, allocations: 125.5 kB / 0.7504 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/1.216, allocations: 50.16 kB / 0.7504 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001564/1.217, allocations: 1.088 MB / 0.7515 GB, free: 122 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.8e-07/1.217, allocations: 2.125 kB / 0.7515 GB, free: 122 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00234/1.22, allocations: 0.5385 MB / 0.752 GB, free: 122 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * 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.00622/1.226, allocations: 5.887 MB / 0.7578 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003523/1.229, allocations: 2.529 MB / 0.7603 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/1.229, allocations: 3.562 kB / 0.7603 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001941/1.231, allocations: 1.62 MB / 0.7618 GB, free: 117 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/1.234, allocations: 414.4 kB / 0.7622 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009825/1.244, allocations: 5.358 MB / 0.7675 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/1.245, allocations: 2.273 MB / 0.7697 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001473/1.247, allocations: 469.7 kB / 0.7701 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/1.248, allocations: 1.127 MB / 0.7712 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of SimCode: time 9.22e-07/1.248, allocations: 2.078 kB / 0.7712 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08284/1.331, allocations: 49.29 MB / 0.8194 GB, free: 85.78 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/1.331, allocations: 168.3 kB / 0.8195 GB, free: 85.58 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.479/4.81, allocations: 0 / 0.8195 GB, free: 85.58 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat