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.001017/0.001017, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001088/0.001088, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009647/0.0009648, allocations: 47.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2554, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0153/0.2708, allocations: 11.89 MB / 412.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.2812, allocations: 3.995 MB / 416.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003304/0.2845, allocations: 75.62 kB / 416.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00294/0.2875, allocations: 0.9393 MB / 417.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004399/0.292, allocations: 1.01 MB / 418.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001519/0.2935, allocations: 0.5538 MB / 419.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005052/0.2986, allocations: 3.418 MB / 422.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003936/0.3025, allocations: 3.081 MB / 425.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002298/0.3048, allocations: 1.585 MB / 427.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002963/0.3078, allocations: 2.047 MB / 429.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006813/0.3085, allocations: 436 kB / 429.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.3096, allocations: 0.5311 MB / 430.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.3108, allocations: 1.262 MB / 431.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002105/0.3129, allocations: 1.94 MB / 433.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005382/0.3183, allocations: 5.677 MB / 439.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3183, allocations: 0 / 439.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3183, allocations: 0 / 439.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001335/0.3185, allocations: 0 / 439.2 MB, free: 2.258 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.008624/0.3271, allocations: 3.947 MB / 443.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.3272, allocations: 12.03 kB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001135/0.3283, allocations: 400.4 kB / 443.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003909/0.3322, allocations: 2.134 MB / 445.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.3324, allocations: 214.3 kB / 445.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004495/0.3329, allocations: 303.8 kB / 446.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00695/0.3398, allocations: 3.854 MB / 450 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-05/0.3399, allocations: 7.906 kB / 450 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002727/0.3402, allocations: 120 kB / 450.1 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001708/0.3404, allocations: 153.7 kB / 450.3 MB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005593/0.346, allocations: 3.251 MB / 453.5 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01984/0.3658, allocations: 12.02 MB / 465.6 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002696/0.3686, allocations: 1.94 MB / 467.5 MB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00191/0.3705, allocations: 1.157 MB / 468.7 MB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003279/0.3709, allocations: 207.5 kB / 468.9 MB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.3709, allocations: 51.81 kB / 468.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.737e-06/0.3709, allocations: 0 / 468.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01375/0.3847, allocations: 7.003 MB / 475.9 MB, free: 12.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.3848, allocations: 72.72 kB / 476 MB, free: 12.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003904/0.3887, allocations: 2.028 MB / 478 MB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/0.3889, allocations: 53.7 kB / 478.1 MB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.3901, allocations: 1.463 MB / 479.5 MB, free: 8.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006655/0.3908, allocations: 0.5353 MB / 480.1 MB, free: 8.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007327/0.3916, allocations: 343.3 kB / 480.4 MB, free: 8.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.3917, allocations: 309 kB / 480.7 MB, free: 7.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.3933, allocations: 0.8823 MB / 481.6 MB, free: 6.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.3954, allocations: 1.446 MB / 483 MB, free: 5.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003677/0.3991, allocations: 2.506 MB / 485.5 MB, free: 2.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.947e-05/0.3991, allocations: 4 kB / 485.5 MB, free: 2.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005368/0.4045, allocations: 3.014 MB / 488.5 MB, free: 15.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.4045, allocations: 12 kB / 488.6 MB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.765e-05/0.4046, allocations: 20 kB / 488.6 MB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009632/0.4055, allocations: 395.5 kB / 489 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.4073, allocations: 467.2 kB / 489.4 MB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006667/0.414, allocations: 6.707 MB / 496.1 MB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.4161, allocations: 135.8 kB / 496.3 MB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003338/0.4164, allocations: 80 kB / 496.3 MB, free: 7.141 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.002048/0.4185, allocations: 0.9381 MB / 497.3 MB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000665/0.4192, allocations: 217.3 kB / 497.5 MB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004893/0.4241, allocations: 2.59 MB / 0.4884 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.4241, allocations: 19.98 kB / 0.4884 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.4241, allocations: 4 kB / 0.4884 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.4241, allocations: 7.969 kB / 0.4884 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.4349, allocations: 5.83 MB / 0.4941 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.4349, allocations: 4 kB / 0.4941 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.4363, allocations: 288 kB / 0.4944 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.4373, allocations: 399.2 kB / 0.4947 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001469/0.4375, allocations: 51.92 kB / 0.4948 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007904/0.4454, allocations: 8.256 MB / 0.5029 GB, free: 3.777 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.4454, allocations: 4 kB / 0.5029 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006474/0.4519, allocations: 3.834 MB / 0.5066 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.4533, allocations: 498.1 kB / 0.5071 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005779/0.4539, allocations: 32 kB / 0.5071 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.4554, allocations: 95.83 kB / 0.5072 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002578/0.4556, allocations: 113.1 kB / 0.5073 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.4558, allocations: 47.98 kB / 0.5074 GB, free: 15.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002999/0.4588, allocations: 1.39 MB / 0.5087 GB, free: 13.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4588, allocations: 0 / 0.5087 GB, free: 13.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002376/0.4612, allocations: 0.5586 MB / 0.5093 GB, free: 13.07 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.0004454/0.4616, allocations: 217 kB / 0.5095 GB, free: 12.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004334/0.466, allocations: 2.637 MB / 0.512 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/0.466, allocations: 8.188 kB / 0.512 GB, free: 10.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002541/0.4685, allocations: 1.565 MB / 0.5136 GB, free: 8.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003596/0.4722, allocations: 0.5495 MB / 0.5141 GB, free: 7.992 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.4846, allocations: 5.874 MB / 0.5198 GB, free: 2.035 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/0.4876, allocations: 2.247 MB / 0.522 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002117/0.4897, allocations: 0.5298 MB / 0.5226 GB, free: 15.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007609/0.4905, allocations: 159.4 kB / 0.5227 GB, free: 15.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4905, allocations: 0 / 0.5227 GB, free: 15.07 MB / 462.1 MB Notification: Performance of Templates: time 0.2881/0.7786, allocations: 31.43 MB / 0.5534 GB, free: 123.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/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