Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002132/0.002132, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.002516/0.002516, allocations: 190 kB / 18.07 MB, free: 5.414 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.568/1.568, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001409/0.001409, allocations: 47.92 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1307, allocations: 46.63 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01504/0.1458, allocations: 10.79 MB / 337.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008081/0.154, allocations: 3.643 MB / 341 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003047/0.1571, allocations: 51.75 kB / 341.1 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003033/0.1602, allocations: 0.7225 MB / 341.8 MB, free: 5.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.1643, allocations: 0.7654 MB / 342.6 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001622/0.1659, allocations: 415.6 kB / 343 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00453/0.1705, allocations: 3.27 MB / 346.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003389/0.1739, allocations: 2.247 MB / 348.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.1766, allocations: 1.202 MB / 349.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.1796, allocations: 1.689 MB / 351.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005227/0.1801, allocations: 232 kB / 351.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.1812, allocations: 347.8 kB / 352 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009823/0.1822, allocations: 0.9268 MB / 352.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002082/0.1843, allocations: 1.52 MB / 354.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004531/0.1888, allocations: 4.712 MB / 359.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.829e-06/0.1889, allocations: 4 kB / 359.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1889, allocations: 4 kB / 359.1 MB, free: 4.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001686/0.1891, allocations: 0 / 359.1 MB, free: 4.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.009906/0.199, allocations: 3.382 MB / 362.5 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.497e-05/0.1991, allocations: 8.031 kB / 362.5 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.2003, allocations: 345.1 kB / 362.8 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004507/0.2048, allocations: 1.686 MB / 364.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.2051, allocations: 197.3 kB / 364.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005578/0.2056, allocations: 251.8 kB / 365 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008156/0.2138, allocations: 3.279 MB / 368.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/0.214, allocations: 7.938 kB / 368.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002932/0.2143, allocations: 108 kB / 368.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001888/0.2145, allocations: 124.9 kB / 368.5 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006052/0.2206, allocations: 2.748 MB / 371.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2681/0.4887, allocations: 10.52 MB / 381.8 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.4913, allocations: 1.35 MB / 383.1 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.4929, allocations: 0.7775 MB / 383.9 MB, free: 46.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003606/0.4933, allocations: 206.4 kB / 384.1 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.4934, allocations: 43.53 kB / 384.1 MB, free: 46.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.216e-06/0.4934, allocations: 1.062 kB / 384.1 MB, free: 46.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01993/0.5133, allocations: 7.04 MB / 391.2 MB, free: 43.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.5134, allocations: 64.25 kB / 391.2 MB, free: 43.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004365/0.5178, allocations: 1.788 MB / 393 MB, free: 43.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002994/0.5181, allocations: 42.14 kB / 393.1 MB, free: 43.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.5193, allocations: 1.281 MB / 394.3 MB, free: 42.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006332/0.5199, allocations: 421 kB / 394.7 MB, free: 41.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007671/0.5207, allocations: 302 kB / 395 MB, free: 41.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.65e-05/0.5208, allocations: 302.5 kB / 395.3 MB, free: 41.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.5222, allocations: 0.7706 MB / 396.1 MB, free: 41.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.5236, allocations: 1.296 MB / 397.4 MB, free: 40.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002873/0.5265, allocations: 2.216 MB / 399.6 MB, free: 38.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.15e-05/0.5266, allocations: 4.938 kB / 399.6 MB, free: 38.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005467/0.5321, allocations: 2.478 MB / 402.1 MB, free: 37.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.331e-05/0.5322, allocations: 11.81 kB / 402.1 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.686e-05/0.5322, allocations: 19.75 kB / 402.1 MB, free: 37.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006943/0.5329, allocations: 241.9 kB / 402.4 MB, free: 37.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.5345, allocations: 411.1 kB / 402.8 MB, free: 37.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003055/0.5376, allocations: 3.004 MB / 405.8 MB, free: 34.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002332/0.54, allocations: 133.7 kB / 405.9 MB, free: 34.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003436/0.5403, allocations: 67.66 kB / 406 MB, free: 34.23 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002482/0.5428, allocations: 0.8343 MB / 406.8 MB, free: 33.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.5439, allocations: 181.7 kB / 407 MB, free: 33.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005046/0.5489, allocations: 2.035 MB / 409 MB, free: 31.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.549, allocations: 12 kB / 409 MB, free: 31.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/0.549, allocations: 0 / 409 MB, free: 31.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.5491, allocations: 11.97 kB / 409 MB, free: 31.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/0.5627, allocations: 4.754 MB / 413.8 MB, free: 27.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/0.5628, allocations: 4 kB / 413.8 MB, free: 27.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.564, allocations: 259.6 kB / 414.1 MB, free: 26.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006254/0.5647, allocations: 204.1 kB / 414.3 MB, free: 26.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/0.5649, allocations: 27.98 kB / 414.3 MB, free: 26.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002846/0.5678, allocations: 2.988 MB / 417.3 MB, free: 23.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/0.5678, allocations: 3 kB / 417.3 MB, free: 23.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005734/0.5736, allocations: 3.125 MB / 420.4 MB, free: 20.15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/0.5752, allocations: 426.6 kB / 420.8 MB, free: 19.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008248/0.5761, allocations: 28.69 kB / 420.8 MB, free: 19.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.5776, allocations: 95.86 kB / 420.9 MB, free: 19.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.5779, allocations: 84.89 kB / 421 MB, free: 19.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.556e-05/0.578, allocations: 32 kB / 421.1 MB, free: 19.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002737/0.5807, allocations: 1.22 MB / 422.3 MB, free: 18.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5808, allocations: 0 / 422.3 MB, free: 18.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.003334/0.5841, allocations: 490.8 kB / 422.7 MB, free: 17.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,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.0005464/0.5847, allocations: 186.2 kB / 422.9 MB, free: 17.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003909/0.5886, allocations: 2.346 MB / 425.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/0.5886, allocations: 2 kB / 425.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.5904, allocations: 1.331 MB / 426.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003581/0.594, allocations: 464.6 kB / 427.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.6055, allocations: 6.032 MB / 433.1 MB, free: 7.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/0.6074, allocations: 2.002 MB / 435.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001748/0.6091, allocations: 0.4921 MB / 435.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/0.6096, allocations: 139.4 kB / 435.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6096, allocations: 0 / 435.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of Templates: time 0.05983/0.6695, allocations: 24.78 MB / 460.5 MB, free: 11.82 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches