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/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) 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 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: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 119.2 kB / 17.09 MB, free: 5.965 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.001253/0.001253, allocations: 197.2 kB / 18.02 MB, free: 5.047 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.423/1.423, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2154/0.2154, allocations: 43.53 MB / 314.8 MB, free: 444 kB / 254.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.0016/0.0016, allocations: 69.47 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1181, allocations: 57.8 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01284/0.1309, allocations: 11.64 MB / 0.4999 GB, free: 108 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008277/0.1392, allocations: 3.946 MB / 0.5038 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003061/0.1424, allocations: 67.69 kB / 0.5038 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003063/0.1455, allocations: 0.8692 MB / 0.5047 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004186/0.1497, allocations: 0.9473 MB / 0.5056 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.1516, allocations: 0.5227 MB / 0.5061 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005032/0.1567, allocations: 3.336 MB / 0.5094 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004587/0.1613, allocations: 2.989 MB / 0.5123 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.1638, allocations: 1.557 MB / 0.5138 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003591/0.1674, allocations: 2.001 MB / 0.5158 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001237/0.1687, allocations: 428 kB / 0.5162 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.1704, allocations: 0.5311 MB / 0.5167 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001746/0.1722, allocations: 1.227 MB / 0.5179 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003529/0.1757, allocations: 1.894 MB / 0.5197 GB, free: 11.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006943/0.1827, allocations: 5.576 MB / 0.5252 GB, free: 6.078 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1827, allocations: 0 / 0.5252 GB, free: 6.078 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1827, allocations: 7.938 kB / 0.5252 GB, free: 6.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002145/0.1829, allocations: 0 / 0.5252 GB, free: 6.07 MB / 414.1 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.01105/0.194, allocations: 3.817 MB / 0.5289 GB, free: 2.184 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.1941, allocations: 15.89 kB / 0.5289 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001393/0.1955, allocations: 392.5 kB / 0.5293 GB, free: 1.781 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.284/0.4795, allocations: 1.957 MB / 0.5312 GB, free: 36.78 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/0.4798, allocations: 215.3 kB / 0.5314 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000905/0.4807, allocations: 285.4 kB / 0.5317 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00712/0.4878, allocations: 3.727 MB / 0.5353 GB, free: 36.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-05/0.488, allocations: 8.266 kB / 0.5353 GB, free: 36.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.4882, allocations: 112.9 kB / 0.5354 GB, free: 36.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00017/0.4884, allocations: 142.6 kB / 0.5356 GB, free: 36.33 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005567/0.494, allocations: 3.167 MB / 0.5387 GB, free: 35.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02006/0.514, allocations: 11.44 MB / 0.5498 GB, free: 29.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003697/0.5178, allocations: 2.168 MB / 0.552 GB, free: 28.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001947/0.5197, allocations: 1.226 MB / 0.5532 GB, free: 27.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002697/0.52, allocations: 211.2 kB / 0.5534 GB, free: 27.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.5201, allocations: 47.03 kB / 0.5534 GB, free: 27.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 4.578e-06/0.5201, allocations: 4.531 kB / 0.5534 GB, free: 27.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01709/0.5372, allocations: 8.203 MB / 0.5614 GB, free: 22.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.5373, allocations: 68.41 kB / 0.5615 GB, free: 22.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00263/0.5399, allocations: 1.939 MB / 0.5634 GB, free: 21.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.54, allocations: 53.23 kB / 0.5634 GB, free: 21.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006742/0.5407, allocations: 1.362 MB / 0.5648 GB, free: 20.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.5411, allocations: 0.521 MB / 0.5653 GB, free: 20.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000446/0.5415, allocations: 316 kB / 0.5656 GB, free: 19.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.427e-05/0.5416, allocations: 305.1 kB / 0.5659 GB, free: 19.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.5428, allocations: 0.8816 MB / 0.5667 GB, free: 18.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.5441, allocations: 1.341 MB / 0.568 GB, free: 17.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.5466, allocations: 2.392 MB / 0.5704 GB, free: 14.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.5466, allocations: 4 kB / 0.5704 GB, free: 14.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003991/0.5506, allocations: 2.935 MB / 0.5732 GB, free: 11.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.5506, allocations: 15.94 kB / 0.5733 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.5507, allocations: 15.75 kB / 0.5733 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007687/0.5514, allocations: 386.5 kB / 0.5736 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.5529, allocations: 443.3 kB / 0.5741 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004484/0.5574, allocations: 6.761 MB / 0.5807 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/0.5593, allocations: 127.8 kB / 0.5808 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.5594, allocations: 72.58 kB / 0.5809 GB, free: 3.602 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00149/0.5609, allocations: 0.9185 MB / 0.5817 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/0.5614, allocations: 201.5 kB / 0.5819 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005537/0.5669, allocations: 2.911 MB / 0.5848 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.567, allocations: 16 kB / 0.5848 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.082e-05/0.567, allocations: 8 kB / 0.5848 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-05/0.567, allocations: 7.969 kB / 0.5848 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.5792, allocations: 6.147 MB / 0.5908 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.85e-05/0.5793, allocations: 4 kB / 0.5908 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.5804, allocations: 239.6 kB / 0.591 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/0.5826, allocations: 0.8078 MB / 0.5918 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/0.5828, allocations: 39.98 kB / 0.5919 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/0.5955, allocations: 10.75 MB / 0.6024 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.5956, allocations: 8.062 kB / 0.6024 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007026/0.6026, allocations: 4.179 MB / 0.6065 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.6039, allocations: 486.4 kB / 0.6069 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006562/0.6046, allocations: 40 kB / 0.607 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/0.6062, allocations: 99.88 kB / 0.6071 GB, free: 8.121 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003476/0.6065, allocations: 121 kB / 0.6072 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.6067, allocations: 47.98 kB / 0.6072 GB, free: 7.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002588/0.6093, allocations: 1.333 MB / 0.6085 GB, free: 6.602 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6093, allocations: 4 kB / 0.6085 GB, free: 6.598 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002528/0.6118, allocations: 0.5726 MB / 0.6091 GB, free: 6.027 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00052/0.6123, allocations: 199.9 kB / 0.6093 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004333/0.6167, allocations: 2.646 MB / 0.6119 GB, free: 3.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.6167, allocations: 0.9375 kB / 0.6119 GB, free: 3.129 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.6193, allocations: 1.641 MB / 0.6135 GB, free: 1.453 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003454/0.6227, allocations: 0.5357 MB / 0.614 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.634, allocations: 5.818 MB / 0.6197 GB, free: 11.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002536/0.6366, allocations: 2.182 MB / 0.6218 GB, free: 8.812 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008178/0.6374, allocations: 163.4 kB / 0.622 GB, free: 8.652 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6375, allocations: 0 / 0.622 GB, free: 8.652 MB / 462.1 MB Notification: Performance of Templates: time 0.1097/0.7472, allocations: 85.3 MB / 0.7053 GB, free: 3.223 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches