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.001563/0.001563, allocations: 186.3 kB / 13.19 MB, free: 2.121 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.861/1.861, allocations: 205.2 MB / 218.9 MB, free: 9.219 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.0009556/0.0009554, allocations: 86.59 kB / 267.1 MB, free: 9.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4438/0.4438, allocations: 43.46 MB / 358.6 MB, free: 52.32 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.757e-05/3.761e-05, allocations: 4 kB / 425.4 MB, free: 8.812 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1373, allocations: 58.85 MB / 484.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/0.6182, allocations: 123 MB / 0.593 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.6185, allocations: 83.28 kB / 0.5931 GB, free: 13.87 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1674/0.7859, allocations: 61.94 MB / 0.6536 GB, free: 15.66 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.7859, allocations: 0 / 0.6536 GB, free: 15.66 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002521/0.7862, allocations: 83.88 kB / 0.6536 GB, free: 15.58 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.007689/0.7939, allocations: 2.908 MB / 0.6565 GB, free: 12.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.7939, allocations: 11.98 kB / 0.6565 GB, free: 12.6 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001064/0.795, allocations: 413 kB / 0.6569 GB, free: 12.19 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/0.7964, allocations: 400.3 kB / 0.6573 GB, free: 11.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005446/0.8019, allocations: 2.157 MB / 0.6594 GB, free: 9.582 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.8021, allocations: 213.6 kB / 0.6596 GB, free: 9.371 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006184/0.8027, allocations: 287.9 kB / 0.6598 GB, free: 9.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006725/0.8095, allocations: 3.632 MB / 0.6634 GB, free: 5.312 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.825e-05/0.8096, allocations: 3.906 kB / 0.6634 GB, free: 5.309 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002695/0.8098, allocations: 120 kB / 0.6635 GB, free: 5.191 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.81, allocations: 133.5 kB / 0.6636 GB, free: 5.059 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005219/0.8152, allocations: 2.935 MB / 0.6665 GB, free: 2.113 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3395/1.155, allocations: 11.62 MB / 0.6779 GB, free: 93.33 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/1.158, allocations: 2.185 MB / 0.68 GB, free: 92.73 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/1.16, allocations: 1.065 MB / 0.681 GB, free: 92.72 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003887/1.16, allocations: 234.5 kB / 0.6813 GB, free: 92.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/1.16, allocations: 50.45 kB / 0.6813 GB, free: 92.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.478e-06/1.16, allocations: 0 / 0.6813 GB, free: 92.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.01338/1.174, allocations: 6.069 MB / 0.6872 GB, free: 91.64 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/1.174, allocations: 71.72 kB / 0.6873 GB, free: 91.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003015/1.177, allocations: 1.686 MB / 0.6889 GB, free: 91.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003137/1.177, allocations: 50.45 kB / 0.689 GB, free: 91.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/1.178, allocations: 1.359 MB / 0.6903 GB, free: 90.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005494/1.179, allocations: 0.53 MB / 0.6908 GB, free: 90.62 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.94e-05/1.179, allocations: 36.5 kB / 0.6909 GB, free: 90.62 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/1.179, allocations: 375.3 kB / 0.6912 GB, free: 90.31 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/1.181, allocations: 0.8685 MB / 0.6921 GB, free: 90.31 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/1.182, allocations: 1.317 MB / 0.6934 GB, free: 89.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/1.183, allocations: 1.094 MB / 0.6944 GB, free: 89.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/1.183, allocations: 6.188 kB / 0.6944 GB, free: 89.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004738/1.188, allocations: 2.894 MB / 0.6973 GB, free: 89.58 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/1.188, allocations: 10.03 kB / 0.6973 GB, free: 89.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/1.188, allocations: 16.61 kB / 0.6973 GB, free: 89.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/1.189, allocations: 453.8 kB / 0.6977 GB, free: 89.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/1.191, allocations: 460.1 kB / 0.6982 GB, free: 89.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006198/1.197, allocations: 7.034 MB / 0.705 GB, free: 85.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/1.199, allocations: 130.8 kB / 0.7052 GB, free: 85.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002433/1.2, allocations: 73.36 kB / 0.7052 GB, free: 85.36 MB / 490.7 MB 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: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.0004605/1.2, allocations: 217 kB / 0.7054 GB, free: 85.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004238/1.201, allocations: 208.5 kB / 0.7056 GB, free: 85.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005043/1.206, allocations: 2.957 MB / 0.7085 GB, free: 84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/1.206, allocations: 14.91 kB / 0.7085 GB, free: 84 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/1.206, allocations: 9.094 kB / 0.7085 GB, free: 84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/1.206, allocations: 7.266 kB / 0.7085 GB, free: 84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/1.218, allocations: 6.123 MB / 0.7145 GB, free: 81.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/1.218, allocations: 2.75 kB / 0.7145 GB, free: 81.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/1.219, allocations: 241.8 kB / 0.7148 GB, free: 81.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/1.222, allocations: 0.8298 MB / 0.7156 GB, free: 81.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/1.222, allocations: 43.19 kB / 0.7156 GB, free: 81.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.236, allocations: 10.19 MB / 0.7256 GB, free: 74.85 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/1.236, allocations: 3.594 kB / 0.7256 GB, free: 74.85 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008966/1.245, allocations: 4.381 MB / 0.7298 GB, free: 72.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/1.247, allocations: 0.493 MB / 0.7303 GB, free: 72.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/1.248, allocations: 33.92 kB / 0.7304 GB, free: 72.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/1.25, allocations: 102.9 kB / 0.7305 GB, free: 72.46 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005418/1.251, allocations: 122.4 kB / 0.7306 GB, free: 72.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002025/1.251, allocations: 47.27 kB / 0.7306 GB, free: 72.43 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003151/1.254, allocations: 1.299 MB / 0.7319 GB, free: 71.88 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.254, allocations: 0 / 0.7319 GB, free: 71.88 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004019/1.258, allocations: 0.6264 MB / 0.7325 GB, free: 71.82 MB / 490.7 MB 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,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * 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.008602/1.267, allocations: 5.957 MB / 0.7383 GB, free: 68.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004306/1.271, allocations: 2.603 MB / 0.7409 GB, free: 67.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.271, allocations: 256 / 0.7409 GB, free: 67.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002379/1.274, allocations: 1.652 MB / 0.7425 GB, free: 66.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/1.277, allocations: 486.3 kB / 0.7429 GB, free: 66.39 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/1.29, allocations: 5.495 MB / 0.7483 GB, free: 64.13 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002684/1.293, allocations: 2.27 MB / 0.7505 GB, free: 63.14 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002082/1.295, allocations: 461.5 kB / 0.751 GB, free: 63.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/1.297, allocations: 1.129 MB / 0.7521 GB, free: 62.17 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/1.297, allocations: 0 / 0.7521 GB, free: 62.17 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1036/1.401, allocations: 57.17 MB / 0.8079 GB, free: 31.41 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/1.401, allocations: 191.1 kB / 0.8081 GB, free: 31.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.944/5.345, allocations: 0 / 0.8081 GB, free: 31.19 MB / 490.7 MB (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