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.001663/0.001663, allocations: 106.4 kB / 17.78 MB, free: 5.289 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.002211/0.002211, allocations: 187.9 kB / 18.7 MB, free: 4.371 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.491/1.491, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2362/0.2362, allocations: 44.18 MB / 336.7 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4396, allocations: 60.82 MB / 0.5189 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01587/0.4555, allocations: 11.69 MB / 0.5303 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.469, allocations: 3.88 MB / 0.5341 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004821/0.4739, allocations: 77.72 kB / 0.5342 GB, free: 8.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003515/0.4775, allocations: 0.8702 MB / 0.535 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004796/0.4824, allocations: 0.9542 MB / 0.536 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001937/0.4843, allocations: 0.5071 MB / 0.5365 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005733/0.4901, allocations: 3.331 MB / 0.5397 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004276/0.4944, allocations: 3.047 MB / 0.5427 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003427/0.4978, allocations: 1.559 MB / 0.5442 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004095/0.5019, allocations: 2.002 MB / 0.5462 GB, free: 164 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009156/0.5029, allocations: 432 kB / 0.5466 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001868/0.5048, allocations: 0.5388 MB / 0.5471 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.5061, allocations: 1.223 MB / 0.5483 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002578/0.5087, allocations: 1.901 MB / 0.5501 GB, free: 12.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006278/0.515, allocations: 5.576 MB / 0.5556 GB, free: 6.469 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.515, allocations: 0 / 0.5556 GB, free: 6.469 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.515, allocations: 0 / 0.5556 GB, free: 6.469 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001673/0.5152, allocations: 0 / 0.5556 GB, free: 6.469 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.00977/0.525, allocations: 3.845 MB / 0.5593 GB, free: 2.555 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.525, allocations: 12.03 kB / 0.5594 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/0.5262, allocations: 384.6 kB / 0.5597 GB, free: 2.164 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005076/0.5313, allocations: 2.083 MB / 0.5618 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/0.5316, allocations: 210.1 kB / 0.562 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005681/0.5322, allocations: 291.8 kB / 0.5622 GB, free: 15.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00717/0.5394, allocations: 3.743 MB / 0.5659 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-05/0.5395, allocations: 4 kB / 0.5659 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002481/0.5397, allocations: 116 kB / 0.566 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.5399, allocations: 137.5 kB / 0.5661 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005497/0.5454, allocations: 3.172 MB / 0.5692 GB, free: 8.285 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0178/0.5632, allocations: 11.44 MB / 0.5804 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003669/0.5669, allocations: 2.169 MB / 0.5825 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.5689, allocations: 1.226 MB / 0.5837 GB, free: 9.035 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003336/0.5692, allocations: 207.5 kB / 0.5839 GB, free: 8.793 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.207e-05/0.5693, allocations: 55.88 kB / 0.584 GB, free: 8.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 3.497e-06/0.5693, allocations: 0 / 0.584 GB, free: 8.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01843/0.5878, allocations: 7.874 MB / 0.5917 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.5879, allocations: 64.72 kB / 0.5917 GB, free: 0.707 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003929/0.5918, allocations: 1.945 MB / 0.5936 GB, free: 14.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002286/0.5921, allocations: 49.7 kB / 0.5937 GB, free: 14.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009627/0.593, allocations: 1.366 MB / 0.595 GB, free: 13.28 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004416/0.5935, allocations: 0.5198 MB / 0.5955 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004913/0.594, allocations: 323.3 kB / 0.5958 GB, free: 12.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.5941, allocations: 301.1 kB / 0.5961 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001821/0.5959, allocations: 0.8901 MB / 0.597 GB, free: 11.24 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/0.5981, allocations: 1.344 MB / 0.5983 GB, free: 9.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.6014, allocations: 2.389 MB / 0.6006 GB, free: 7.125 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.6015, allocations: 4 kB / 0.6006 GB, free: 7.121 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005191/0.6067, allocations: 2.928 MB / 0.6035 GB, free: 4.152 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.868e-05/0.6067, allocations: 12.41 kB / 0.6035 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/0.6068, allocations: 20 kB / 0.6035 GB, free: 4.121 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009177/0.6077, allocations: 391 kB / 0.6039 GB, free: 3.727 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.6094, allocations: 455.2 kB / 0.6043 GB, free: 3.281 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006721/0.6161, allocations: 6.753 MB / 0.6109 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002201/0.6184, allocations: 127.8 kB / 0.611 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/0.6186, allocations: 75.98 kB / 0.6111 GB, free: 11.91 MB / 478.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.001818/0.6204, allocations: 0.899 MB / 0.612 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005076/0.6209, allocations: 209.4 kB / 0.6122 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00499/0.6259, allocations: 2.919 MB / 0.615 GB, free: 7.863 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.626, allocations: 16 kB / 0.6151 GB, free: 7.848 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/0.626, allocations: 11.98 kB / 0.6151 GB, free: 7.836 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.626, allocations: 7.984 kB / 0.6151 GB, free: 7.828 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.6365, allocations: 6.13 MB / 0.6211 GB, free: 1.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.6366, allocations: 4 kB / 0.6211 GB, free: 1.562 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.6376, allocations: 239.6 kB / 0.6213 GB, free: 1.328 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002068/0.6397, allocations: 0.8042 MB / 0.6221 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.6399, allocations: 39.98 kB / 0.6221 GB, free: 488 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/0.6524, allocations: 10.75 MB / 0.6326 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.6524, allocations: 8 kB / 0.6326 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007108/0.6595, allocations: 4.18 MB / 0.6367 GB, free: 1.035 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/0.661, allocations: 486.4 kB / 0.6372 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003022/0.6613, allocations: 35.98 kB / 0.6372 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.6623, allocations: 95.89 kB / 0.6373 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003622/0.6627, allocations: 121 kB / 0.6374 GB, free: 300 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.6628, allocations: 51.98 kB / 0.6375 GB, free: 248 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002162/0.665, allocations: 1.336 MB / 0.6388 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.665, allocations: 4 kB / 0.6388 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002251/0.6673, allocations: 0.5703 MB / 0.6393 GB, free: 14.31 MB / 0.4981 GB 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.0005225/0.6678, allocations: 198.9 kB / 0.6395 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004256/0.6721, allocations: 2.652 MB / 0.6421 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/0.6721, allocations: 0 / 0.6421 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.6747, allocations: 1.642 MB / 0.6437 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/0.6776, allocations: 0.5377 MB / 0.6442 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.6884, allocations: 5.733 MB / 0.6498 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002078/0.6906, allocations: 2.213 MB / 0.652 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001542/0.6921, allocations: 465.7 kB / 0.6524 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/0.6926, allocations: 155.4 kB / 0.6526 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of SimCode: time 7.02e-07/0.6926, allocations: 0 / 0.6526 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of Templates: time 0.06462/0.7572, allocations: 34.01 MB / 0.6858 GB, free: 14.76 MB / 0.545 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/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