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.001657/0.001656, allocations: 114.8 kB / 17.75 MB, free: 5.344 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.002049/0.002049, allocations: 184.5 kB / 18.66 MB, free: 4.434 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.373/1.373, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 51.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2657, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01385/0.2796, allocations: 11.89 MB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008461/0.2881, allocations: 3.999 MB / 417.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002569/0.2907, allocations: 75.69 kB / 417.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.2933, allocations: 0.8808 MB / 418.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004015/0.2974, allocations: 0.9628 MB / 419.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.2993, allocations: 0.5577 MB / 419.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005331/0.3047, allocations: 3.403 MB / 423.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004159/0.3088, allocations: 3.088 MB / 426.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002921/0.3118, allocations: 1.585 MB / 427.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003942/0.3158, allocations: 2.043 MB / 429.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001361/0.3172, allocations: 436 kB / 430.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001897/0.3191, allocations: 0.5311 MB / 430.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001522/0.3206, allocations: 1.254 MB / 432.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002439/0.3231, allocations: 1.948 MB / 434.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005835/0.3289, allocations: 5.679 MB / 439.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.329, allocations: 4 kB / 439.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.329, allocations: 0 / 439.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000165/0.3291, allocations: 0 / 439.7 MB, free: 2.332 MB / 350.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.00898/0.3381, allocations: 3.943 MB / 443.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3382, allocations: 8.031 kB / 443.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/0.3394, allocations: 404.4 kB / 444.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004348/0.3437, allocations: 2.13 MB / 446.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.344, allocations: 222.3 kB / 446.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006923/0.3447, allocations: 299.8 kB / 446.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007248/0.3519, allocations: 3.851 MB / 450.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.909e-05/0.352, allocations: 7.844 kB / 450.6 MB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002888/0.3523, allocations: 128 kB / 450.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.3525, allocations: 149.6 kB / 450.9 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006374/0.3589, allocations: 3.255 MB / 454.1 MB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02227/0.3812, allocations: 12.02 MB / 466.1 MB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.3838, allocations: 1.933 MB / 468.1 MB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/0.3857, allocations: 1.149 MB / 469.2 MB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000331/0.386, allocations: 211.5 kB / 469.4 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.796e-05/0.3861, allocations: 51.86 kB / 469.5 MB, free: 3.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 5.851e-06/0.3861, allocations: 3.984 kB / 469.5 MB, free: 3.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01428/0.4004, allocations: 7.007 MB / 476.5 MB, free: 12.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.4005, allocations: 64.72 kB / 476.6 MB, free: 12.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002889/0.4034, allocations: 2.036 MB / 478.6 MB, free: 10.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.4035, allocations: 49.7 kB / 478.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.4045, allocations: 1.456 MB / 480.1 MB, free: 9.031 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004975/0.4051, allocations: 0.5392 MB / 480.6 MB, free: 8.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005473/0.4056, allocations: 347.3 kB / 481 MB, free: 8.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4057, allocations: 313 kB / 481.3 MB, free: 7.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.4071, allocations: 0.8745 MB / 482.2 MB, free: 6.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.4088, allocations: 1.45 MB / 483.6 MB, free: 5.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003332/0.4122, allocations: 2.51 MB / 486.1 MB, free: 2.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.4122, allocations: 4 kB / 486.1 MB, free: 2.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005338/0.4175, allocations: 3.006 MB / 489.1 MB, free: 15.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.4176, allocations: 16 kB / 489.1 MB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.13e-05/0.4176, allocations: 19.94 kB / 489.2 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009204/0.4186, allocations: 395.5 kB / 489.5 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/0.4203, allocations: 471.2 kB / 490 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006721/0.4271, allocations: 6.705 MB / 496.7 MB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.4292, allocations: 135.8 kB / 496.8 MB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/0.4294, allocations: 80.05 kB / 496.9 MB, free: 7.215 MB / 414.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.002125/0.4316, allocations: 0.9343 MB / 497.9 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006875/0.4323, allocations: 213.3 kB / 498.1 MB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004556/0.4368, allocations: 2.602 MB / 0.4889 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.4369, allocations: 16 kB / 0.4889 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.4369, allocations: 0 / 0.4889 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.4369, allocations: 12.08 kB / 0.489 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.4473, allocations: 5.822 MB / 0.4946 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.4474, allocations: 4 kB / 0.4946 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.4486, allocations: 287.6 kB / 0.4949 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.4497, allocations: 403.5 kB / 0.4953 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.4498, allocations: 39.92 kB / 0.4953 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007677/0.4575, allocations: 8.265 MB / 0.5034 GB, free: 3.859 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4576, allocations: 8.062 kB / 0.5034 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00639/0.464, allocations: 3.838 MB / 0.5072 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/0.4652, allocations: 486.2 kB / 0.5076 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004642/0.4657, allocations: 40 kB / 0.5077 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.4669, allocations: 95.83 kB / 0.5078 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.4672, allocations: 117.1 kB / 0.5079 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.4673, allocations: 43.98 kB / 0.5079 GB, free: 15.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002745/0.4701, allocations: 1.394 MB / 0.5093 GB, free: 13.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4701, allocations: 0 / 0.5093 GB, free: 13.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002887/0.473, allocations: 0.5625 MB / 0.5098 GB, free: 13.14 MB / 446.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.0005319/0.4735, allocations: 205.2 kB / 0.51 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004287/0.4778, allocations: 2.649 MB / 0.5126 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4778, allocations: 0 / 0.5126 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002535/0.4804, allocations: 1.561 MB / 0.5141 GB, free: 8.617 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/0.4834, allocations: 0.5493 MB / 0.5147 GB, free: 8.074 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.4947, allocations: 5.935 MB / 0.5205 GB, free: 2.051 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002024/0.4968, allocations: 2.212 MB / 0.5226 GB, free: 15.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000915/0.4977, allocations: 179.4 kB / 0.5228 GB, free: 15.63 MB / 462.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4977, allocations: 0 / 0.5228 GB, free: 15.63 MB / 462.1 MB Notification: Performance of Templates: time 0.3202/0.8179, allocations: 94.95 MB / 0.6155 GB, free: 59.89 MB / 462.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