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.001429/0.001429, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 206.3 kB / 16.79 MB, free: 6.84 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.784/1.784, allocations: 205.1 MB / 222.6 MB, free: 5.008 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.427/0.427, allocations: 43.49 MB / 313.5 MB, free: 8.625 MB / 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.001433/0.001433, allocations: 71.89 kB / 382 MB, free: 9.043 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1822, allocations: 57.78 MB / 439.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01641/0.1986, allocations: 11.53 MB / 451.3 MB, free: 3.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3394/0.5381, allocations: 3.909 MB / 455.3 MB, free: 38.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003491/0.5416, allocations: 61.44 kB / 455.3 MB, free: 38.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.5447, allocations: 0.7448 MB / 456.1 MB, free: 38.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003939/0.5487, allocations: 0.8604 MB / 456.9 MB, free: 38.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.55, allocations: 467.9 kB / 457.4 MB, free: 38.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004398/0.5544, allocations: 3.645 MB / 461 MB, free: 38.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002821/0.5572, allocations: 2.524 MB / 463.5 MB, free: 37.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.5596, allocations: 1.351 MB / 464.9 MB, free: 37.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00234/0.5619, allocations: 1.911 MB / 466.8 MB, free: 36.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004504/0.5624, allocations: 261.2 kB / 467.1 MB, free: 36.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009677/0.5634, allocations: 386.7 kB / 467.4 MB, free: 36.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009587/0.5643, allocations: 1.052 MB / 468.5 MB, free: 36.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001719/0.5661, allocations: 1.709 MB / 470.2 MB, free: 35.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004608/0.5707, allocations: 5.363 MB / 475.6 MB, free: 33.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.5707, allocations: 4 kB / 475.6 MB, free: 33.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5707, allocations: 0 / 475.6 MB, free: 33.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.5709, allocations: 0 / 475.6 MB, free: 33.39 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.008733/0.5796, allocations: 3.818 MB / 479.4 MB, free: 31.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.139e-05/0.5797, allocations: 13.7 kB / 479.4 MB, free: 31.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/0.5809, allocations: 395.6 kB / 479.8 MB, free: 31.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003353/0.5842, allocations: 1.939 MB / 481.7 MB, free: 30.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.5844, allocations: 217.4 kB / 481.9 MB, free: 29.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004044/0.5849, allocations: 292.5 kB / 482.2 MB, free: 29.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007505/0.5924, allocations: 3.73 MB / 486 MB, free: 28.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-05/0.5925, allocations: 7.422 kB / 486 MB, free: 28.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000262/0.5927, allocations: 111.9 kB / 486.1 MB, free: 28.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002021/0.593, allocations: 146.5 kB / 486.2 MB, free: 28.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007008/0.6, allocations: 3.169 MB / 489.4 MB, free: 27.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02932/0.6293, allocations: 11.56 MB / 0.4892 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004813/0.6342, allocations: 2.188 MB / 0.4913 GB, free: 19.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002851/0.6371, allocations: 1.239 MB / 0.4925 GB, free: 19.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004924/0.6376, allocations: 211.9 kB / 0.4928 GB, free: 18.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.708e-05/0.6377, allocations: 53.38 kB / 0.4928 GB, free: 18.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 6.042e-06/0.6377, allocations: 1.188 kB / 0.4928 GB, free: 18.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02471/0.6624, allocations: 8.194 MB / 0.5008 GB, free: 14.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.6625, allocations: 66.97 kB / 0.5009 GB, free: 14.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004575/0.6671, allocations: 1.938 MB / 0.5028 GB, free: 13.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.6673, allocations: 55.05 kB / 0.5028 GB, free: 13.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.6684, allocations: 1.358 MB / 0.5041 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005407/0.6689, allocations: 0.5215 MB / 0.5047 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006366/0.6696, allocations: 325.3 kB / 0.505 GB, free: 11.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.721e-05/0.6696, allocations: 301.1 kB / 0.5052 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.6711, allocations: 0.8802 MB / 0.5061 GB, free: 10.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.6725, allocations: 1.345 MB / 0.5074 GB, free: 8.973 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002836/0.6754, allocations: 2.383 MB / 0.5097 GB, free: 6.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/0.6754, allocations: 4 kB / 0.5098 GB, free: 6.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004762/0.6802, allocations: 2.928 MB / 0.5126 GB, free: 3.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.6802, allocations: 14.72 kB / 0.5126 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.922e-05/0.6803, allocations: 19.94 kB / 0.5126 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008559/0.6811, allocations: 387.6 kB / 0.513 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.6827, allocations: 447.2 kB / 0.5134 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006077/0.6888, allocations: 6.213 MB / 0.5195 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002491/0.6913, allocations: 126.2 kB / 0.5196 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003971/0.6917, allocations: 75.98 kB / 0.5197 GB, free: 11.77 MB / 398.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.002773/0.6945, allocations: 0.9032 MB / 0.5206 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/0.6955, allocations: 205.5 kB / 0.5208 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006653/0.7022, allocations: 2.907 MB / 0.5236 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.7022, allocations: 16 kB / 0.5236 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.226e-05/0.7023, allocations: 8 kB / 0.5236 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.7023, allocations: 7.969 kB / 0.5236 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01567/0.7179, allocations: 6.161 MB / 0.5297 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/0.718, allocations: 8 kB / 0.5297 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001193/0.7192, allocations: 243.6 kB / 0.5299 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002774/0.722, allocations: 0.8038 MB / 0.5307 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000199/0.7222, allocations: 39.98 kB / 0.5307 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01424/0.7365, allocations: 9.822 MB / 0.5403 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.7365, allocations: 7.938 kB / 0.5403 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00819/0.7447, allocations: 4.183 MB / 0.5444 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/0.7464, allocations: 482.4 kB / 0.5449 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008641/0.7473, allocations: 43.98 kB / 0.5449 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/0.749, allocations: 95.83 kB / 0.545 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004041/0.7495, allocations: 125.1 kB / 0.5451 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/0.7496, allocations: 55.91 kB / 0.5452 GB, free: 1.043 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003144/0.7528, allocations: 1.329 MB / 0.5465 GB, free: 15.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7528, allocations: 0 / 0.5465 GB, free: 15.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003259/0.7561, allocations: 0.5664 MB / 0.547 GB, free: 15.12 MB / 430.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.0005215/0.7566, allocations: 225.4 kB / 0.5472 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004544/0.7612, allocations: 2.622 MB / 0.5498 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.7612, allocations: 0 / 0.5498 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002612/0.7638, allocations: 1.64 MB / 0.5514 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/0.7679, allocations: 0.4995 MB / 0.5519 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.7827, allocations: 7.078 MB / 0.5588 GB, free: 2.906 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003665/0.7864, allocations: 2.213 MB / 0.561 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002359/0.7888, allocations: 469.7 kB / 0.5614 GB, free: 208 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/0.7899, allocations: 151.4 kB / 0.5616 GB, free: 60 kB / 430.1 MB Notification: Performance of SimCode: time 2.344e-06/0.79, allocations: 0 / 0.5616 GB, free: 60 kB / 430.1 MB Notification: Performance of Templates: time 0.101/0.891, allocations: 31.59 MB / 0.5924 GB, free: 0.5391 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches