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/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 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 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) 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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.001163/0.001168, allocations: 108.3 kB / 18.39 MB, free: 4.629 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.001135/0.001135, allocations: 186.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 243 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.213/0.213, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 64.72 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1337, allocations: 60.82 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01285/0.1466, allocations: 11.68 MB / 482.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007655/0.1543, allocations: 3.894 MB / 486.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.1563, allocations: 79.62 kB / 486.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002105/0.1584, allocations: 0.8575 MB / 487.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003189/0.1616, allocations: 0.9551 MB / 488.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.1629, allocations: 0.5188 MB / 488.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004263/0.1672, allocations: 3.333 MB / 492 MB, free: 8.246 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003375/0.1705, allocations: 3.033 MB / 495 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.1728, allocations: 1.557 MB / 496.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002664/0.1755, allocations: 2.008 MB / 498.6 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006831/0.1762, allocations: 428 kB / 499 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008965/0.1771, allocations: 0.531 MB / 499.6 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.1782, allocations: 1.231 MB / 0.4891 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001775/0.18, allocations: 1.894 MB / 0.4909 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00464/0.1846, allocations: 5.572 MB / 0.4963 GB, free: 7.895 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1846, allocations: 7.922 kB / 0.4964 GB, free: 7.887 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1846, allocations: 0 / 0.4964 GB, free: 7.887 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.91e-05/0.1847, allocations: 0 / 0.4964 GB, free: 7.887 MB / 382.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.006793/0.1915, allocations: 3.837 MB / 0.5001 GB, free: 3.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1916, allocations: 12.03 kB / 0.5001 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000868/0.1924, allocations: 384.6 kB / 0.5005 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003673/0.1961, allocations: 2.083 MB / 0.5025 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.1963, allocations: 218 kB / 0.5027 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003961/0.1967, allocations: 287.8 kB / 0.503 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2064/0.4031, allocations: 3.729 MB / 0.5066 GB, free: 45.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.128e-05/0.4032, allocations: 4.234 kB / 0.5066 GB, free: 45.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/0.4035, allocations: 120 kB / 0.5068 GB, free: 45.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.4036, allocations: 138.5 kB / 0.5069 GB, free: 45.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005376/0.409, allocations: 3.174 MB / 0.51 GB, free: 44.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01578/0.4248, allocations: 11.44 MB / 0.5212 GB, free: 38.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003068/0.4279, allocations: 2.172 MB / 0.5233 GB, free: 36.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.4296, allocations: 1.247 MB / 0.5245 GB, free: 35.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002607/0.4298, allocations: 206.6 kB / 0.5247 GB, free: 35.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.4299, allocations: 53.38 kB / 0.5247 GB, free: 35.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.126e-06/0.4299, allocations: 2.062 kB / 0.5247 GB, free: 35.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01385/0.4437, allocations: 7.852 MB / 0.5324 GB, free: 31.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.4438, allocations: 64.72 kB / 0.5325 GB, free: 31.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002427/0.4462, allocations: 1.948 MB / 0.5344 GB, free: 29.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.112e-05/0.4463, allocations: 53.7 kB / 0.5344 GB, free: 29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006102/0.4469, allocations: 1.365 MB / 0.5358 GB, free: 27.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.4472, allocations: 0.5272 MB / 0.5363 GB, free: 27.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004468/0.4477, allocations: 319.3 kB / 0.5366 GB, free: 26.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.793e-05/0.4477, allocations: 301.1 kB / 0.5369 GB, free: 26.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.4488, allocations: 0.8823 MB / 0.5377 GB, free: 25.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.4501, allocations: 1.348 MB / 0.539 GB, free: 24.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.4525, allocations: 2.392 MB / 0.5414 GB, free: 21.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.4525, allocations: 4 kB / 0.5414 GB, free: 21.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003861/0.4564, allocations: 2.928 MB / 0.5442 GB, free: 18.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.4564, allocations: 15.44 kB / 0.5443 GB, free: 18.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.4565, allocations: 16 kB / 0.5443 GB, free: 18.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007715/0.4572, allocations: 383.4 kB / 0.5446 GB, free: 18.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.4588, allocations: 455.2 kB / 0.5451 GB, free: 17.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004691/0.4635, allocations: 6.759 MB / 0.5517 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.4652, allocations: 123.8 kB / 0.5518 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.4654, allocations: 71.98 kB / 0.5519 GB, free: 10.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.001617/0.4671, allocations: 0.9032 MB / 0.5527 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005787/0.4677, allocations: 209.4 kB / 0.5529 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004822/0.4725, allocations: 2.914 MB / 0.5558 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.4725, allocations: 16 kB / 0.5558 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/0.4726, allocations: 8 kB / 0.5558 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.4726, allocations: 8.625 kB / 0.5558 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.4831, allocations: 6.132 MB / 0.5618 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.4831, allocations: 4 kB / 0.5618 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4842, allocations: 240.1 kB / 0.562 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002117/0.4864, allocations: 0.8102 MB / 0.5628 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.4865, allocations: 35.98 kB / 0.5629 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.4999, allocations: 10.75 MB / 0.5734 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.4999, allocations: 4 kB / 0.5734 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/0.5106, allocations: 4.175 MB / 0.5774 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/0.5126, allocations: 490.4 kB / 0.5779 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006635/0.5133, allocations: 35.94 kB / 0.578 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/0.5153, allocations: 95.88 kB / 0.578 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004265/0.5158, allocations: 125 kB / 0.5782 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.516, allocations: 47.98 kB / 0.5782 GB, free: 14.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003778/0.5197, allocations: 1.34 MB / 0.5795 GB, free: 13.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5198, allocations: 0 / 0.5795 GB, free: 13.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003667/0.5234, allocations: 0.5736 MB / 0.5801 GB, free: 12.76 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,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 () * Number of clocked 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 (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.0006719/0.5241, allocations: 199.3 kB / 0.5803 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006113/0.5303, allocations: 2.643 MB / 0.5828 GB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.341e-06/0.5303, allocations: 0 / 0.5828 GB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003649/0.5339, allocations: 1.638 MB / 0.5844 GB, free: 8.184 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/0.5378, allocations: 0.5302 MB / 0.585 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.5506, allocations: 5.761 MB / 0.5906 GB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002637/0.5532, allocations: 2.206 MB / 0.5927 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001733/0.555, allocations: 477.7 kB / 0.5932 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000665/0.5557, allocations: 151.4 kB / 0.5933 GB, free: 14.99 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5557, allocations: 0 / 0.5933 GB, free: 14.99 MB / 430.1 MB Notification: Performance of Templates: time 0.05896/0.6146, allocations: 32.85 MB / 0.6254 GB, free: 14.44 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches