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.001091/0.001091, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001106/0.001106, allocations: 193.5 kB / 18.67 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.317/1.317, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2951, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01376/0.3089, allocations: 11.9 MB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008731/0.3177, allocations: 3.992 MB / 417.3 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002938/0.3206, allocations: 79.62 kB / 417.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002519/0.3232, allocations: 0.8768 MB / 418.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003995/0.3273, allocations: 0.9628 MB / 419.2 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.3288, allocations: 0.5577 MB / 419.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004855/0.3337, allocations: 3.403 MB / 423.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003466/0.3372, allocations: 3.088 MB / 426.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.3394, allocations: 1.585 MB / 427.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002471/0.3419, allocations: 2.047 MB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005362/0.3425, allocations: 436 kB / 430.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009181/0.3434, allocations: 0.5311 MB / 430.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001125/0.3445, allocations: 1.251 MB / 432.1 MB, free: 10 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002034/0.3466, allocations: 1.952 MB / 434.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005947/0.3525, allocations: 5.674 MB / 439.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.3526, allocations: 4 kB / 439.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3526, allocations: 0 / 439.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001497/0.3527, allocations: 0 / 439.7 MB, free: 2.348 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.008537/0.3613, allocations: 3.939 MB / 443.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.3613, allocations: 12.03 kB / 443.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.3624, allocations: 404.4 kB / 444.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/0.366, allocations: 2.13 MB / 446.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.3662, allocations: 222.2 kB / 446.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003955/0.3666, allocations: 295.8 kB / 446.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005995/0.3726, allocations: 3.858 MB / 450.6 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.585e-05/0.3726, allocations: 11.89 kB / 450.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002528/0.3729, allocations: 120 kB / 450.7 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/0.373, allocations: 145.7 kB / 450.9 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005101/0.3782, allocations: 3.259 MB / 454.1 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01893/0.3971, allocations: 12.02 MB / 466.1 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.3995, allocations: 1.937 MB / 468.1 MB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.4014, allocations: 1.149 MB / 469.2 MB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002941/0.4017, allocations: 207.5 kB / 469.4 MB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.4017, allocations: 63.73 kB / 469.5 MB, free: 3.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.046e-06/0.4017, allocations: 0 / 469.5 MB, free: 3.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01386/0.4156, allocations: 6.995 MB / 476.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.4157, allocations: 72.72 kB / 476.6 MB, free: 12.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003945/0.4196, allocations: 2.032 MB / 478.6 MB, free: 10.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002279/0.4199, allocations: 49.7 kB / 478.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.4211, allocations: 1.46 MB / 480.1 MB, free: 9.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007168/0.4219, allocations: 0.5353 MB / 480.6 MB, free: 8.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008169/0.4227, allocations: 355.2 kB / 481 MB, free: 8.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4228, allocations: 305.1 kB / 481.3 MB, free: 7.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.4244, allocations: 0.8784 MB / 482.2 MB, free: 6.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.4263, allocations: 1.446 MB / 483.6 MB, free: 5.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003605/0.43, allocations: 2.51 MB / 486.1 MB, free: 2.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.43, allocations: 4 kB / 486.1 MB, free: 2.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005218/0.4352, allocations: 3.01 MB / 489.1 MB, free: 15.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.4353, allocations: 16 kB / 489.1 MB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.582e-05/0.4353, allocations: 19.98 kB / 489.2 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009263/0.4362, allocations: 387.5 kB / 489.5 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.4379, allocations: 471.2 kB / 490 MB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.4444, allocations: 6.709 MB / 496.7 MB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/0.4463, allocations: 127.8 kB / 496.8 MB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002858/0.4466, allocations: 91.98 kB / 496.9 MB, free: 7.227 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.002011/0.4487, allocations: 0.9304 MB / 497.9 MB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007183/0.4494, allocations: 217.2 kB / 498.1 MB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004631/0.454, allocations: 2.598 MB / 0.4889 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4541, allocations: 12 kB / 0.4889 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/0.4541, allocations: 4 kB / 0.4889 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.4541, allocations: 7.969 kB / 0.489 GB, free: 3.406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.4663, allocations: 5.822 MB / 0.4946 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/0.4663, allocations: 4 kB / 0.4946 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001846/0.4682, allocations: 295.5 kB / 0.4949 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.4697, allocations: 395.6 kB / 0.4953 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.4699, allocations: 47.98 kB / 0.4953 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008013/0.478, allocations: 8.266 MB / 0.5034 GB, free: 3.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.478, allocations: 7.984 kB / 0.5034 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006622/0.4846, allocations: 3.834 MB / 0.5072 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.486, allocations: 490.2 kB / 0.5076 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006444/0.4867, allocations: 32 kB / 0.5077 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.4881, allocations: 103.8 kB / 0.5078 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.4884, allocations: 109.1 kB / 0.5079 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.4885, allocations: 51.98 kB / 0.5079 GB, free: 15.13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002661/0.4911, allocations: 1.386 MB / 0.5093 GB, free: 13.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4912, allocations: 0 / 0.5093 GB, free: 13.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002426/0.4936, allocations: 0.5625 MB / 0.5098 GB, free: 13.16 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.0004483/0.494, allocations: 212.8 kB / 0.51 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003945/0.498, allocations: 2.645 MB / 0.5126 GB, free: 10.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.498, allocations: 448 / 0.5126 GB, free: 10.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002086/0.5001, allocations: 1.569 MB / 0.5141 GB, free: 8.625 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/0.5028, allocations: 0.5435 MB / 0.5147 GB, free: 8.086 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.5134, allocations: 5.935 MB / 0.5205 GB, free: 2.062 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002557/0.516, allocations: 2.212 MB / 0.5226 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008126/0.5168, allocations: 175.4 kB / 0.5228 GB, free: 15.64 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5168, allocations: 0 / 0.5228 GB, free: 15.64 MB / 462.1 MB Notification: Performance of Templates: time 0.3451/0.8619, allocations: 95.36 MB / 0.6159 GB, free: 59.72 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