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.001631/0.00163, allocations: 114.7 kB / 17.08 MB, free: 5.992 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.001876/0.001876, allocations: 197.2 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.866/2.866, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.4629/0.4629, allocations: 43.51 MB / 314.8 MB, free: 464 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.002524/0.002524, allocations: 67.89 kB / 442.5 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1825, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.02123/0.2038, allocations: 11.64 MB / 0.4999 GB, free: 116 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.2161, allocations: 3.957 MB / 0.5038 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003198/0.2194, allocations: 63.69 kB / 0.5038 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.2235, allocations: 0.8693 MB / 0.5047 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005714/0.2292, allocations: 0.9434 MB / 0.5056 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002347/0.2316, allocations: 0.5188 MB / 0.5061 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006963/0.2386, allocations: 3.34 MB / 0.5094 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005752/0.2444, allocations: 2.981 MB / 0.5123 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003719/0.2481, allocations: 1.554 MB / 0.5138 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00525/0.2534, allocations: 2.005 MB / 0.5157 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.2551, allocations: 432 kB / 0.5162 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.2573, allocations: 0.5272 MB / 0.5167 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002228/0.2596, allocations: 1.227 MB / 0.5179 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004759/0.2644, allocations: 1.901 MB / 0.5197 GB, free: 11.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.2748, allocations: 5.572 MB / 0.5252 GB, free: 6.082 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.2748, allocations: 0 / 0.5252 GB, free: 6.082 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.237e-06/0.2748, allocations: 0 / 0.5252 GB, free: 6.082 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002317/0.2751, allocations: 0 / 0.5252 GB, free: 6.082 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.01587/0.291, allocations: 3.832 MB / 0.5289 GB, free: 2.184 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.291, allocations: 11.89 kB / 0.5289 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.2925, allocations: 400.5 kB / 0.5293 GB, free: 1.777 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2789/0.5713, allocations: 1.948 MB / 0.5312 GB, free: 36.8 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002736/0.5717, allocations: 217.1 kB / 0.5314 GB, free: 36.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.5727, allocations: 284.1 kB / 0.5317 GB, free: 36.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007768/0.5805, allocations: 3.727 MB / 0.5353 GB, free: 36.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.268e-05/0.5806, allocations: 5.562 kB / 0.5353 GB, free: 36.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002825/0.5809, allocations: 118.8 kB / 0.5354 GB, free: 36.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/0.5811, allocations: 140.1 kB / 0.5356 GB, free: 36.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006518/0.5876, allocations: 3.166 MB / 0.5387 GB, free: 35.22 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02315/0.6108, allocations: 11.44 MB / 0.5498 GB, free: 29.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003941/0.6148, allocations: 2.169 MB / 0.552 GB, free: 28.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/0.617, allocations: 1.227 MB / 0.5532 GB, free: 27.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003095/0.6173, allocations: 209.3 kB / 0.5534 GB, free: 27.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.6173, allocations: 49.38 kB / 0.5534 GB, free: 27.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 4.899e-06/0.6174, allocations: 3.938 kB / 0.5534 GB, free: 27.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01904/0.6364, allocations: 8.207 MB / 0.5614 GB, free: 22.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.6365, allocations: 67.28 kB / 0.5615 GB, free: 22.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003833/0.6403, allocations: 1.933 MB / 0.5634 GB, free: 21.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002634/0.6406, allocations: 55.67 kB / 0.5634 GB, free: 21.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008061/0.6414, allocations: 1.361 MB / 0.5648 GB, free: 20.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005012/0.642, allocations: 0.516 MB / 0.5653 GB, free: 20.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006012/0.6426, allocations: 320.1 kB / 0.5656 GB, free: 19.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.16e-05/0.6426, allocations: 305.1 kB / 0.5659 GB, free: 19.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.644, allocations: 0.8833 MB / 0.5667 GB, free: 18.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.6454, allocations: 1.349 MB / 0.568 GB, free: 17.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002776/0.6482, allocations: 2.387 MB / 0.5704 GB, free: 14.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.6482, allocations: 4 kB / 0.5704 GB, free: 14.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004632/0.6529, allocations: 2.928 MB / 0.5732 GB, free: 11.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/0.6529, allocations: 15.94 kB / 0.5732 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.653, allocations: 14.06 kB / 0.5733 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008404/0.6538, allocations: 390 kB / 0.5736 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.6555, allocations: 454.8 kB / 0.5741 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004923/0.6604, allocations: 6.753 MB / 0.5807 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.6624, allocations: 127.8 kB / 0.5808 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.6626, allocations: 75.98 kB / 0.5809 GB, free: 3.602 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.001497/0.6641, allocations: 0.9146 MB / 0.5818 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004907/0.6646, allocations: 209.5 kB / 0.5819 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004645/0.6693, allocations: 2.903 MB / 0.5848 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/0.6693, allocations: 16 kB / 0.5848 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.6693, allocations: 8 kB / 0.5848 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/0.6694, allocations: 7.969 kB / 0.5848 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/0.6812, allocations: 6.144 MB / 0.5908 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.6813, allocations: 6.25 kB / 0.5908 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.6824, allocations: 239.6 kB / 0.591 GB, free: 9.035 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/0.6846, allocations: 0.8044 MB / 0.5918 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001583/0.6848, allocations: 43.97 kB / 0.5919 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/0.6984, allocations: 10.75 MB / 0.6024 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.6984, allocations: 12 kB / 0.6024 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007533/0.706, allocations: 4.179 MB / 0.6065 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.7074, allocations: 486.4 kB / 0.6069 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003817/0.7078, allocations: 39.98 kB / 0.607 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.709, allocations: 99.88 kB / 0.6071 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003445/0.7094, allocations: 117 kB / 0.6072 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.7095, allocations: 55.97 kB / 0.6072 GB, free: 7.949 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.7118, allocations: 1.325 MB / 0.6085 GB, free: 6.602 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7118, allocations: 0 / 0.6085 GB, free: 6.602 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002372/0.7142, allocations: 0.5752 MB / 0.6091 GB, free: 6.027 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.0005251/0.7147, allocations: 204 kB / 0.6093 GB, free: 5.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004385/0.7191, allocations: 2.643 MB / 0.6119 GB, free: 3.125 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.7191, allocations: 4 kB / 0.6119 GB, free: 3.121 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002689/0.7218, allocations: 1.642 MB / 0.6135 GB, free: 1.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002955/0.7248, allocations: 0.5324 MB / 0.614 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.7354, allocations: 5.813 MB / 0.6197 GB, free: 11.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002096/0.7376, allocations: 2.186 MB / 0.6218 GB, free: 8.812 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008774/0.7385, allocations: 163.4 kB / 0.622 GB, free: 8.652 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7385, allocations: 0 / 0.622 GB, free: 8.652 MB / 462.1 MB Notification: Performance of Templates: time 0.1106/0.8491, allocations: 85.69 MB / 0.7056 GB, free: 2.832 MB / 0.5294 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/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