Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001807/0.001807, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.403/1.403, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009558/0.0009558, allocations: 52.11 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0857/0.08668, allocations: 49.45 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01293/0.09965, allocations: 11.88 MB / 362.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007206/0.1069, allocations: 3.988 MB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.1088, allocations: 75.62 kB / 366.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.1111, allocations: 0.8847 MB / 367.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002936/0.1141, allocations: 0.9707 MB / 368.5 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.1154, allocations: 0.5539 MB / 369.1 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1632/0.2787, allocations: 3.383 MB / 372.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003343/0.2821, allocations: 3.087 MB / 375.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002091/0.2842, allocations: 1.576 MB / 377.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00413/0.2883, allocations: 2.038 MB / 379.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001393/0.2897, allocations: 435.7 kB / 379.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.2917, allocations: 0.5418 MB / 380.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.2931, allocations: 1.256 MB / 381.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002918/0.296, allocations: 1.94 MB / 383.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006451/0.3025, allocations: 5.596 MB / 388.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.3025, allocations: 4.25 kB / 388.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.644e-06/0.3025, allocations: 0 / 388.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001789/0.3027, allocations: 0 / 388.9 MB, free: 6.469 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01016/0.3129, allocations: 3.933 MB / 392.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3129, allocations: 13.11 kB / 392.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/0.3143, allocations: 405 kB / 393.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003732/0.318, allocations: 2.074 MB / 395.4 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.3183, allocations: 219.9 kB / 395.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006166/0.3189, allocations: 302.7 kB / 395.9 MB, free: 2.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006692/0.3256, allocations: 3.854 MB / 399.7 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.401e-05/0.3257, allocations: 10.91 kB / 399.7 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002811/0.326, allocations: 117.8 kB / 399.8 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/0.3262, allocations: 152.8 kB / 400 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00584/0.332, allocations: 3.249 MB / 403.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02387/0.3559, allocations: 12.16 MB / 415.4 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003072/0.359, allocations: 1.942 MB / 417.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00221/0.3613, allocations: 1.16 MB / 418.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003575/0.3616, allocations: 211.4 kB / 418.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/0.3617, allocations: 47.88 kB / 418.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 4.509e-06/0.3617, allocations: 0 / 418.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.017/0.3787, allocations: 7.006 MB / 425.8 MB, free: 5.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.152e-05/0.3788, allocations: 72.72 kB / 425.8 MB, free: 5.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004468/0.3833, allocations: 2.028 MB / 427.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000262/0.3836, allocations: 53.7 kB / 427.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.3849, allocations: 1.466 MB / 429.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006604/0.3856, allocations: 0.5284 MB / 429.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007527/0.3863, allocations: 351.2 kB / 430.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3865, allocations: 309.1 kB / 430.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.3881, allocations: 0.8823 MB / 431.4 MB, free: 72 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.3902, allocations: 1.454 MB / 432.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003803/0.394, allocations: 2.506 MB / 435.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.332e-05/0.394, allocations: 8 kB / 435.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00587/0.3999, allocations: 3.002 MB / 438.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.512e-05/0.4, allocations: 12 kB / 438.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.443e-05/0.4, allocations: 20 kB / 438.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009815/0.401, allocations: 393 kB / 438.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/0.4029, allocations: 468 kB / 439.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007108/0.4101, allocations: 6.705 MB / 446 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/0.4126, allocations: 139.8 kB / 446.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004558/0.4131, allocations: 83.98 kB / 446.2 MB, free: 0.6055 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * 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.002631/0.4157, allocations: 0.9248 MB / 447.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008629/0.4166, allocations: 229.2 kB / 447.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005414/0.422, allocations: 2.586 MB / 449.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.4221, allocations: 19.94 kB / 450 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/0.4221, allocations: 8 kB / 450 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.4221, allocations: 7.969 kB / 450 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/0.4354, allocations: 5.86 MB / 455.8 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.4355, allocations: 8.094 kB / 455.8 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/0.4368, allocations: 286 kB / 456.1 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.4379, allocations: 414.1 kB / 456.5 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/0.4381, allocations: 43.98 kB / 456.6 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008071/0.4462, allocations: 8.253 MB / 464.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4463, allocations: 4.188 kB / 464.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006996/0.4533, allocations: 3.841 MB / 468.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/0.4547, allocations: 490.1 kB / 469.1 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007267/0.4555, allocations: 36 kB / 469.2 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/0.4571, allocations: 91.88 kB / 469.3 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.4574, allocations: 116.6 kB / 469.4 MB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/0.4576, allocations: 43.98 kB / 469.4 MB, free: 8.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003081/0.4607, allocations: 1.386 MB / 470.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4607, allocations: 0 / 470.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003003/0.4637, allocations: 0.5703 MB / 471.4 MB, free: 6.719 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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,6,100.0%), (1,1,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.0005591/0.4643, allocations: 208.5 kB / 471.6 MB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007269/0.4715, allocations: 3.548 MB / 475.1 MB, free: 2.996 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.4716, allocations: 0 / 475.1 MB, free: 2.996 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002409/0.474, allocations: 1.564 MB / 476.7 MB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/0.4779, allocations: 0.5542 MB / 477.2 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/0.4911, allocations: 6.007 MB / 483.3 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003136/0.4943, allocations: 2.212 MB / 485.5 MB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.4954, allocations: 171.4 kB / 485.6 MB, free: 8.383 MB / 398.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4954, allocations: 0 / 485.6 MB, free: 8.383 MB / 398.1 MB Notification: Performance of Templates: time 0.2718/0.7672, allocations: 94.62 MB / 0.5667 GB, free: 131.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches