Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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) 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(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001429, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.001698/0.001699, allocations: 186.9 kB / 19.28 MB, free: 3.879 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.561/1.561, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.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.001263/0.001263, allocations: 56.14 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1295, allocations: 46.62 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01569/0.1453, allocations: 11.62 MB / 340.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.1558, allocations: 3.953 MB / 344.3 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003406/0.1592, allocations: 63.69 kB / 344.4 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003049/0.1624, allocations: 0.8654 MB / 345.2 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004897/0.1673, allocations: 0.9512 MB / 346.2 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.1692, allocations: 0.511 MB / 346.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005369/0.1745, allocations: 3.297 MB / 350 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003338/0.1779, allocations: 2.985 MB / 353 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002887/0.1808, allocations: 1.53 MB / 354.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00337/0.1842, allocations: 1.973 MB / 356.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008017/0.185, allocations: 424 kB / 356.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001216/0.1862, allocations: 0.5232 MB / 357.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.1875, allocations: 1.216 MB / 358.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002699/0.1902, allocations: 1.874 MB / 360.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006154/0.1963, allocations: 5.518 MB / 366 MB, free: 14.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.096e-05/0.1964, allocations: 7.984 kB / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1964, allocations: 0 / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001684/0.1966, allocations: 0 / 366 MB, free: 14.24 MB / 318.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.008415/0.205, allocations: 3.806 MB / 369.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.2051, allocations: 8.031 kB / 369.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009904/0.2061, allocations: 392.6 kB / 370.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003826/0.2099, allocations: 1.946 MB / 372.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001702/0.2101, allocations: 218 kB / 372.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004201/0.2105, allocations: 295.8 kB / 372.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006736/0.2173, allocations: 3.689 MB / 376.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.447e-05/0.2174, allocations: 12 kB / 376.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002538/0.2176, allocations: 116 kB / 376.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001763/0.2178, allocations: 145.5 kB / 376.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005535/0.2234, allocations: 3.113 MB / 379.7 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2734/0.4968, allocations: 11.5 MB / 391.2 MB, free: 45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.4995, allocations: 1.899 MB / 393.1 MB, free: 43.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00183/0.5014, allocations: 1.086 MB / 394.2 MB, free: 43.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002759/0.5017, allocations: 208 kB / 394.4 MB, free: 43.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.5017, allocations: 49.08 kB / 394.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.506e-06/0.5017, allocations: 0 / 394.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01438/0.5161, allocations: 6.516 MB / 401 MB, free: 39.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.5162, allocations: 72.5 kB / 401.1 MB, free: 39.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/0.5194, allocations: 1.993 MB / 403 MB, free: 38.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.5195, allocations: 49.45 kB / 403.1 MB, free: 38.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007368/0.5203, allocations: 1.407 MB / 404.5 MB, free: 36.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00039/0.5207, allocations: 497.1 kB / 405 MB, free: 36.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004814/0.5212, allocations: 323.1 kB / 405.3 MB, free: 36.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.414e-05/0.5212, allocations: 301.1 kB / 405.6 MB, free: 35.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.5223, allocations: 0.8155 MB / 406.4 MB, free: 35.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.5237, allocations: 1.38 MB / 407.8 MB, free: 34.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002371/0.5261, allocations: 2.37 MB / 410.2 MB, free: 31.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/0.5261, allocations: 8 kB / 410.2 MB, free: 31.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004392/0.5305, allocations: 2.854 MB / 413 MB, free: 28.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.5306, allocations: 15.98 kB / 413 MB, free: 28.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.529e-05/0.5306, allocations: 16 kB / 413.1 MB, free: 28.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008811/0.5315, allocations: 387.6 kB / 413.4 MB, free: 28.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.5329, allocations: 431.3 kB / 413.9 MB, free: 28.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004921/0.5378, allocations: 6.706 MB / 420.6 MB, free: 20.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002004/0.5398, allocations: 123.7 kB / 420.7 MB, free: 20.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.54, allocations: 80.09 kB / 420.8 MB, free: 20.77 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * 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,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001648/0.5416, allocations: 0.9155 MB / 421.7 MB, free: 19.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004632/0.5421, allocations: 209.5 kB / 421.9 MB, free: 19.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003433/0.5455, allocations: 2.424 MB / 424.3 MB, free: 17.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.5456, allocations: 13.12 kB / 424.3 MB, free: 17.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.5456, allocations: 4 kB / 424.3 MB, free: 17.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.5456, allocations: 7.969 kB / 424.3 MB, free: 17.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008504/0.5541, allocations: 5.507 MB / 429.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.5542, allocations: 4 kB / 429.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.5552, allocations: 255.6 kB / 430.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008804/0.5561, allocations: 402.1 kB / 430.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.5562, allocations: 39.98 kB / 430.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006094/0.5623, allocations: 8.263 MB / 438.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5623, allocations: 4 kB / 438.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005677/0.568, allocations: 3.609 MB / 442.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002021/0.5701, allocations: 478.3 kB / 442.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003275/0.5704, allocations: 32 kB / 442.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.5715, allocations: 91.83 kB / 443 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003107/0.5718, allocations: 109.2 kB / 443.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.572, allocations: 47.92 kB / 443.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002625/0.5746, allocations: 1.361 MB / 444.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5746, allocations: 0 / 444.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002683/0.5773, allocations: 0.5369 MB / 445 MB, free: 11.62 MB / 334.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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005363/0.5778, allocations: 197.7 kB / 445.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004266/0.5821, allocations: 2.503 MB / 447.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.5821, allocations: 0 / 447.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002335/0.5845, allocations: 1.488 MB / 449.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/0.5872, allocations: 0.5276 MB / 449.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.5984, allocations: 5.672 MB / 455.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00226/0.6007, allocations: 2.2 MB / 457.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001699/0.6024, allocations: 0.5018 MB / 458.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/0.6028, allocations: 147.4 kB / 458.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of SimCode: time 1.392e-06/0.6028, allocations: 0 / 458.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of Templates: time 0.05912/0.662, allocations: 29.54 MB / 487.8 MB, free: 0.6289 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches