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.001241/0.001241, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001278/0.001278, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.346/1.346, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2143/0.2143, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 64.55 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1057, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01267/0.1184, allocations: 11.67 MB / 481.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007781/0.1262, allocations: 3.906 MB / 485.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.1283, allocations: 71.69 kB / 485.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002547/0.1309, allocations: 0.8653 MB / 486.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003499/0.1344, allocations: 0.9551 MB / 487.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001689/0.1361, allocations: 0.5071 MB / 487.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004354/0.1405, allocations: 3.306 MB / 491.2 MB, free: 9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004377/0.1449, allocations: 3.048 MB / 494.3 MB, free: 5.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.1472, allocations: 1.542 MB / 495.8 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003113/0.1503, allocations: 2.005 MB / 497.8 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001105/0.1515, allocations: 431.9 kB / 498.2 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.1531, allocations: 0.535 MB / 498.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001684/0.1548, allocations: 1.223 MB / 500 MB, free: 148 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003437/0.1583, allocations: 1.901 MB / 0.4901 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00654/0.1649, allocations: 5.495 MB / 0.4955 GB, free: 8.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1649, allocations: 0 / 0.4955 GB, free: 8.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1649, allocations: 0 / 0.4955 GB, free: 8.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001875/0.1651, allocations: 0 / 0.4955 GB, free: 8.723 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.01004/0.1751, allocations: 3.848 MB / 0.4992 GB, free: 4.805 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.1752, allocations: 8.031 kB / 0.4992 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/0.1768, allocations: 392.6 kB / 0.4996 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004196/0.181, allocations: 2.024 MB / 0.5016 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.1812, allocations: 222 kB / 0.5018 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000806/0.1821, allocations: 287.9 kB / 0.5021 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2099/0.392, allocations: 3.725 MB / 0.5057 GB, free: 45.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8e-05/0.3921, allocations: 6.922 kB / 0.5057 GB, free: 45.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/0.3924, allocations: 122.3 kB / 0.5058 GB, free: 45.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.3925, allocations: 136.6 kB / 0.506 GB, free: 45.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006067/0.3986, allocations: 3.172 MB / 0.5091 GB, free: 44.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01892/0.4176, allocations: 11.57 MB / 0.5204 GB, free: 38.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003429/0.421, allocations: 2.188 MB / 0.5225 GB, free: 36.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.4229, allocations: 1.226 MB / 0.5237 GB, free: 36.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002779/0.4232, allocations: 212.1 kB / 0.5239 GB, free: 35.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.4233, allocations: 47.22 kB / 0.524 GB, free: 35.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.467e-06/0.4233, allocations: 0 / 0.524 GB, free: 35.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01545/0.4387, allocations: 7.866 MB / 0.5316 GB, free: 31.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.4388, allocations: 68.53 kB / 0.5317 GB, free: 31.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002408/0.4412, allocations: 1.945 MB / 0.5336 GB, free: 29.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.4414, allocations: 49.7 kB / 0.5336 GB, free: 29.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006382/0.442, allocations: 1.362 MB / 0.535 GB, free: 28.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003095/0.4423, allocations: 0.5265 MB / 0.5355 GB, free: 27.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004243/0.4428, allocations: 319.3 kB / 0.5358 GB, free: 27.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4e-05/0.4428, allocations: 301.1 kB / 0.5361 GB, free: 27.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.444, allocations: 0.8862 MB / 0.5369 GB, free: 26.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.4453, allocations: 1.344 MB / 0.5383 GB, free: 24.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002503/0.4478, allocations: 2.388 MB / 0.5406 GB, free: 22.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.4478, allocations: 7.938 kB / 0.5406 GB, free: 22.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004672/0.4525, allocations: 2.928 MB / 0.5435 GB, free: 19.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.4526, allocations: 8 kB / 0.5435 GB, free: 19.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.4526, allocations: 16 kB / 0.5435 GB, free: 19.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008572/0.4535, allocations: 398.9 kB / 0.5439 GB, free: 18.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.455, allocations: 447.2 kB / 0.5443 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004628/0.4597, allocations: 6.758 MB / 0.5509 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.4615, allocations: 130 kB / 0.551 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/0.4617, allocations: 75.98 kB / 0.5511 GB, free: 11.05 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.001589/0.4633, allocations: 0.9031 MB / 0.552 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006226/0.464, allocations: 205.4 kB / 0.5522 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.4688, allocations: 2.914 MB / 0.555 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.4688, allocations: 12 kB / 0.555 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.166e-05/0.4688, allocations: 8 kB / 0.555 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/0.4689, allocations: 11.97 kB / 0.555 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009957/0.4788, allocations: 6.149 MB / 0.561 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.4789, allocations: 8.062 kB / 0.5611 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009719/0.4799, allocations: 239.6 kB / 0.5613 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001955/0.4818, allocations: 0.8115 MB / 0.5621 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.482, allocations: 39.92 kB / 0.5621 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01252/0.4945, allocations: 10.75 MB / 0.5726 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.4946, allocations: 7.938 kB / 0.5726 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007149/0.5017, allocations: 4.171 MB / 0.5767 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.503, allocations: 486.4 kB / 0.5772 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005817/0.5036, allocations: 35.94 kB / 0.5772 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.5051, allocations: 95.88 kB / 0.5773 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000349/0.5055, allocations: 125 kB / 0.5774 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.5056, allocations: 51.97 kB / 0.5775 GB, free: 15.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002606/0.5082, allocations: 1.333 MB / 0.5788 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5082, allocations: 0 / 0.5788 GB, free: 14.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002492/0.5107, allocations: 0.5703 MB / 0.5793 GB, free: 13.47 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.00052/0.5113, allocations: 210 kB / 0.5795 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006238/0.5175, allocations: 3.297 MB / 0.5827 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.5176, allocations: 0 / 0.5827 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002624/0.5202, allocations: 1.641 MB / 0.5843 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003164/0.5234, allocations: 0.5384 MB / 0.5849 GB, free: 7.719 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.534, allocations: 5.875 MB / 0.5906 GB, free: 1.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002368/0.5364, allocations: 2.194 MB / 0.5927 GB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007517/0.5371, allocations: 167.4 kB / 0.5929 GB, free: 15.39 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5371, allocations: 0 / 0.5929 GB, free: 15.39 MB / 430.1 MB Notification: Performance of Templates: time 0.1002/0.6374, allocations: 85.11 MB / 0.676 GB, free: 10.3 MB / 0.4981 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/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