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.001314/0.001314, allocations: 103.3 kB / 16.4 MB, free: 6.449 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.00169/0.001691, allocations: 194.2 kB / 17.34 MB, free: 5.719 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.484/1.484, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2383/0.2383, allocations: 43.52 MB / 314.1 MB, free: 448 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.001553/0.001553, allocations: 63.91 kB / 441.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1556, allocations: 57.78 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01591/0.1716, allocations: 11.65 MB / 0.4992 GB, free: 92 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.1818, allocations: 3.946 MB / 0.5031 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002451/0.1843, allocations: 63.69 kB / 0.5032 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002283/0.1867, allocations: 0.8653 MB / 0.504 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003251/0.1899, allocations: 0.9512 MB / 0.5049 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.1915, allocations: 0.5265 MB / 0.5055 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005484/0.197, allocations: 3.34 MB / 0.5087 GB, free: 6.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004847/0.2019, allocations: 2.977 MB / 0.5116 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002824/0.2047, allocations: 1.553 MB / 0.5131 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003144/0.2079, allocations: 2.008 MB / 0.5151 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006465/0.2085, allocations: 432 kB / 0.5155 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.2096, allocations: 0.5272 MB / 0.516 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001145/0.2108, allocations: 1.227 MB / 0.5172 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002053/0.2129, allocations: 1.898 MB / 0.5191 GB, free: 11.65 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006055/0.2189, allocations: 5.576 MB / 0.5245 GB, free: 6.059 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.219, allocations: 0 / 0.5245 GB, free: 6.059 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.219, allocations: 0 / 0.5245 GB, free: 6.059 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000134/0.2191, allocations: 0 / 0.5245 GB, free: 6.059 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.008626/0.2277, allocations: 3.825 MB / 0.5283 GB, free: 2.164 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.752e-05/0.2278, allocations: 11.89 kB / 0.5283 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001088/0.2289, allocations: 396.5 kB / 0.5286 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4172/0.6461, allocations: 1.95 MB / 0.5306 GB, free: 36.78 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.6465, allocations: 218.6 kB / 0.5308 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.6477, allocations: 281.7 kB / 0.531 GB, free: 36.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.6578, allocations: 3.736 MB / 0.5347 GB, free: 36.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.47e-05/0.6579, allocations: 3.844 kB / 0.5347 GB, free: 36.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002908/0.6582, allocations: 114.5 kB / 0.5348 GB, free: 36.35 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002203/0.6584, allocations: 141.4 kB / 0.5349 GB, free: 36.33 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008196/0.6666, allocations: 3.165 MB / 0.538 GB, free: 35.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02756/0.6942, allocations: 11.44 MB / 0.5492 GB, free: 29.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004671/0.6989, allocations: 2.172 MB / 0.5513 GB, free: 28.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002317/0.7013, allocations: 1.224 MB / 0.5525 GB, free: 27.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003394/0.7016, allocations: 214.7 kB / 0.5527 GB, free: 27.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.7017, allocations: 50.25 kB / 0.5528 GB, free: 27.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 5.09e-06/0.7017, allocations: 2.297 kB / 0.5528 GB, free: 27.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.0204/0.7221, allocations: 8.208 MB / 0.5608 GB, free: 22.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.7222, allocations: 70.56 kB / 0.5608 GB, free: 22.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003389/0.7256, allocations: 1.943 MB / 0.5627 GB, free: 21.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003645/0.726, allocations: 49.58 kB / 0.5628 GB, free: 21.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008601/0.7268, allocations: 1.353 MB / 0.5641 GB, free: 20.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004868/0.7273, allocations: 0.5195 MB / 0.5646 GB, free: 20.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005701/0.7279, allocations: 324.9 kB / 0.5649 GB, free: 19.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.728, allocations: 312.5 kB / 0.5652 GB, free: 19.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.7295, allocations: 0.882 MB / 0.5661 GB, free: 18.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.731, allocations: 1.345 MB / 0.5674 GB, free: 17.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00291/0.7339, allocations: 2.388 MB / 0.5697 GB, free: 14.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.7339, allocations: 4 kB / 0.5697 GB, free: 14.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005236/0.7391, allocations: 2.924 MB / 0.5726 GB, free: 11.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.7392, allocations: 15.94 kB / 0.5726 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.7392, allocations: 16 kB / 0.5726 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009003/0.7401, allocations: 387.4 kB / 0.573 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/0.7417, allocations: 443.3 kB / 0.5734 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005185/0.7469, allocations: 6.761 MB / 0.58 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002148/0.7491, allocations: 123.8 kB / 0.5801 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.7493, allocations: 75.98 kB / 0.5802 GB, free: 3.562 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.002284/0.7516, allocations: 0.9147 MB / 0.5811 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007143/0.7523, allocations: 205.5 kB / 0.5813 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005241/0.7575, allocations: 2.911 MB / 0.5841 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.7576, allocations: 12 kB / 0.5841 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.7576, allocations: 8 kB / 0.5842 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.188e-05/0.7576, allocations: 7.969 kB / 0.5842 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.7691, allocations: 6.144 MB / 0.5902 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.7692, allocations: 4 kB / 0.5902 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.7702, allocations: 236.2 kB / 0.5904 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.7723, allocations: 0.7999 MB / 0.5912 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001344/0.7725, allocations: 55.97 kB / 0.5912 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01472/0.7872, allocations: 10.75 MB / 0.6017 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.7873, allocations: 4 kB / 0.6017 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00726/0.7946, allocations: 4.18 MB / 0.6058 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.796, allocations: 490.4 kB / 0.6063 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/0.7964, allocations: 35.98 kB / 0.6063 GB, free: 8.184 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.7975, allocations: 95.88 kB / 0.6064 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000398/0.798, allocations: 125 kB / 0.6065 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.7981, allocations: 52.22 kB / 0.6066 GB, free: 7.918 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002327/0.8004, allocations: 1.333 MB / 0.6079 GB, free: 6.562 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8004, allocations: 0 / 0.6079 GB, free: 6.562 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003157/0.8036, allocations: 0.5674 MB / 0.6084 GB, free: 5.996 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.0005427/0.8041, allocations: 208.1 kB / 0.6086 GB, free: 5.785 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004886/0.809, allocations: 2.642 MB / 0.6112 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/0.8091, allocations: 0 / 0.6112 GB, free: 3.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002926/0.812, allocations: 1.642 MB / 0.6128 GB, free: 1.414 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/0.8157, allocations: 0.5367 MB / 0.6133 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.8286, allocations: 5.753 MB / 0.619 GB, free: 11.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/0.8312, allocations: 2.213 MB / 0.6211 GB, free: 8.816 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002092/0.8333, allocations: 469.7 kB / 0.6216 GB, free: 8.355 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004953/0.8338, allocations: 151.4 kB / 0.6217 GB, free: 8.207 MB / 462.1 MB Notification: Performance of SimCode: time 3.035e-06/0.8338, allocations: 0 / 0.6217 GB, free: 8.207 MB / 462.1 MB Notification: Performance of Templates: time 0.07329/0.9071, allocations: 33.34 MB / 0.6543 GB, free: 6.895 MB / 494.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","/var/lib/jenkins/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