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.001297/0.001297, allocations: 116.5 kB / 17.69 MB, free: 5.434 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.001486/0.001486, allocations: 191 kB / 18.63 MB, free: 4.5 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.32/1.32, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 50.66 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.1009, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01304/0.114, allocations: 11.89 MB / 363.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00779/0.1218, allocations: 3.987 MB / 367.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.1245, allocations: 75.69 kB / 367.5 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002972/0.1275, allocations: 0.8769 MB / 368.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004174/0.1318, allocations: 0.9667 MB / 369.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.1334, allocations: 0.5579 MB / 369.9 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1749/0.3083, allocations: 3.395 MB / 373.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003523/0.3119, allocations: 3.099 MB / 376.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002482/0.3144, allocations: 1.578 MB / 377.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.3172, allocations: 2.046 MB / 380 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006559/0.3178, allocations: 434.9 kB / 380.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.3189, allocations: 0.5348 MB / 380.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.32, allocations: 1.257 MB / 382.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001917/0.3219, allocations: 1.945 MB / 384.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004996/0.3269, allocations: 5.679 MB / 389.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.327, allocations: 0 / 389.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.327, allocations: 0 / 389.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001094/0.3271, allocations: 0 / 389.8 MB, free: 6.879 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.00699/0.3341, allocations: 3.942 MB / 393.8 MB, free: 4.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.3342, allocations: 13.97 kB / 393.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009346/0.3351, allocations: 401.2 kB / 394.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/0.3385, allocations: 2.131 MB / 396.3 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.3387, allocations: 221.8 kB / 396.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003766/0.3391, allocations: 291 kB / 396.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005137/0.3442, allocations: 3.863 MB / 400.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.148e-05/0.3443, allocations: 7.906 kB / 400.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002591/0.3446, allocations: 119.8 kB / 400.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.3447, allocations: 145.7 kB / 400.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005168/0.3499, allocations: 3.258 MB / 404.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/0.3682, allocations: 12.02 MB / 416.2 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002385/0.3706, allocations: 1.931 MB / 418.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.3724, allocations: 1.168 MB / 419.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003096/0.3727, allocations: 210 kB / 419.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.3728, allocations: 51.88 kB / 419.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.316e-06/0.3728, allocations: 0 / 419.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.0137/0.3865, allocations: 7.011 MB / 426.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3866, allocations: 68.72 kB / 426.6 MB, free: 5.617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002978/0.3896, allocations: 2.024 MB / 428.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.3897, allocations: 57.69 kB / 428.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001077/0.3908, allocations: 1.462 MB / 430.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004504/0.3912, allocations: 0.5292 MB / 430.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005194/0.3918, allocations: 355.2 kB / 431.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3919, allocations: 309.1 kB / 431.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.3932, allocations: 0.8745 MB / 432.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.3949, allocations: 1.452 MB / 433.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003195/0.3981, allocations: 2.502 MB / 436.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/0.3981, allocations: 8 kB / 436.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00462/0.4027, allocations: 3.012 MB / 439.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.4028, allocations: 12 kB / 439.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.4028, allocations: 20 kB / 439.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008702/0.4037, allocations: 383.4 kB / 439.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.4053, allocations: 476.4 kB / 440.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005903/0.4112, allocations: 6.699 MB / 446.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.413, allocations: 135.8 kB / 446.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.4132, allocations: 83.98 kB / 447 MB, free: 0.5039 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.001726/0.4149, allocations: 0.9293 MB / 447.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/0.4153, allocations: 221.2 kB / 448.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003992/0.4193, allocations: 2.592 MB / 450.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.4193, allocations: 19.94 kB / 450.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.4193, allocations: 4 kB / 450.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.4194, allocations: 7.969 kB / 450.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00923/0.4286, allocations: 5.834 MB / 456.6 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-06/0.4286, allocations: 4 kB / 456.6 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.4298, allocations: 285.2 kB / 456.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000927/0.4307, allocations: 407.2 kB / 457.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.4309, allocations: 43.98 kB / 457.3 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007083/0.4379, allocations: 8.252 MB / 465.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.438, allocations: 4 kB / 465.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005775/0.4438, allocations: 3.851 MB / 469.4 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001302/0.4451, allocations: 486.2 kB / 469.9 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002895/0.4454, allocations: 36 kB / 469.9 MB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.4464, allocations: 91.88 kB / 470 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/0.4467, allocations: 120.5 kB / 470.1 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.81e-05/0.4468, allocations: 43.98 kB / 470.2 MB, free: 8.625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002128/0.4489, allocations: 1.386 MB / 471.6 MB, free: 7.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4489, allocations: 0 / 471.6 MB, free: 7.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002082/0.451, allocations: 0.5625 MB / 472.1 MB, free: 6.656 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.0004059/0.4514, allocations: 218.3 kB / 472.4 MB, free: 6.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003793/0.4552, allocations: 2.639 MB / 475 MB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4552, allocations: 9.875 kB / 475 MB, free: 3.812 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.4573, allocations: 1.556 MB / 476.6 MB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.4596, allocations: 0.5592 MB / 477.1 MB, free: 1.688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008649/0.4683, allocations: 5.852 MB / 483 MB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001906/0.4702, allocations: 2.255 MB / 485.2 MB, free: 9.484 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001384/0.4716, allocations: 0.5298 MB / 485.8 MB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/0.4721, allocations: 159.4 kB / 485.9 MB, free: 8.797 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4721, allocations: 4 kB / 485.9 MB, free: 8.793 MB / 398.1 MB Notification: Performance of Templates: time 0.05093/0.523, allocations: 30.83 MB / 0.5046 GB, free: 10.33 MB / 430.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 -s gbode -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