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.001482/0.001482, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001629/0.001629, allocations: 191 kB / 18.63 MB, free: 4.367 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.35/1.35, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009608/0.0009609, allocations: 46.92 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09175, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01319/0.105, allocations: 11.9 MB / 363.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007592/0.1126, allocations: 3.984 MB / 367.4 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001814/0.1144, allocations: 75.69 kB / 367.5 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002244/0.1167, allocations: 0.8769 MB / 368.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003111/0.1199, allocations: 0.9668 MB / 369.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.1212, allocations: 0.5578 MB / 369.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1693/0.2905, allocations: 3.398 MB / 373.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003893/0.2944, allocations: 3.086 MB / 376.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.2969, allocations: 1.582 MB / 377.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003339/0.3003, allocations: 2.041 MB / 380 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000971/0.3013, allocations: 435.6 kB / 380.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.3028, allocations: 0.5413 MB / 380.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001327/0.3042, allocations: 1.254 MB / 382.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002385/0.3065, allocations: 1.938 MB / 384.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0053/0.3119, allocations: 5.68 MB / 389.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3119, allocations: 4 kB / 389.8 MB, free: 6.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3119, allocations: 4 kB / 389.8 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001336/0.312, allocations: 2.531 kB / 389.8 MB, free: 6.637 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.007652/0.3197, allocations: 3.938 MB / 393.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3197, allocations: 8.375 kB / 393.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/0.3208, allocations: 405.9 kB / 394.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003553/0.3244, allocations: 2.124 MB / 396.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3245, allocations: 225.2 kB / 396.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003708/0.3249, allocations: 297.2 kB / 396.8 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005532/0.3304, allocations: 3.856 MB / 400.7 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.858e-05/0.3305, allocations: 7.906 kB / 400.7 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000256/0.3308, allocations: 122.9 kB / 400.8 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/0.3309, allocations: 152.3 kB / 400.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005169/0.3361, allocations: 3.255 MB / 404.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01813/0.3542, allocations: 12.02 MB / 416.2 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.3567, allocations: 1.932 MB / 418.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.3586, allocations: 1.165 MB / 419.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003082/0.3589, allocations: 217.8 kB / 419.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.3589, allocations: 47.86 kB / 419.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.287e-06/0.3589, allocations: 0 / 419.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01328/0.3722, allocations: 7.002 MB / 426.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.3723, allocations: 72.47 kB / 426.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003497/0.3758, allocations: 2.032 MB / 428.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002266/0.3761, allocations: 49.7 kB / 428.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009926/0.3771, allocations: 1.458 MB / 430.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004377/0.3775, allocations: 0.5338 MB / 430.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005533/0.3781, allocations: 351.2 kB / 431.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3782, allocations: 313 kB / 431.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.3796, allocations: 0.8761 MB / 432.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/0.3814, allocations: 1.45 MB / 433.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003235/0.3846, allocations: 2.499 MB / 436.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.3846, allocations: 11.75 kB / 436.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004784/0.3894, allocations: 3.009 MB / 439.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.3895, allocations: 12.5 kB / 439.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.3895, allocations: 20 kB / 439.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008531/0.3904, allocations: 386.8 kB / 439.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.392, allocations: 475.5 kB / 440.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006055/0.398, allocations: 6.708 MB / 446.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.3998, allocations: 131.8 kB / 446.9 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001557/0.4, allocations: 80.11 kB / 447 MB, free: 312 kB / 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.001617/0.4016, allocations: 0.9453 MB / 447.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003864/0.402, allocations: 221.2 kB / 448.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/0.4061, allocations: 2.585 MB / 450.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.4061, allocations: 19.94 kB / 450.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4061, allocations: 7.984 kB / 450.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.4061, allocations: 3.984 kB / 450.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008989/0.4151, allocations: 5.826 MB / 456.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.4152, allocations: 12.05 kB / 456.6 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.4164, allocations: 289.8 kB / 456.9 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009557/0.4173, allocations: 408.6 kB / 457.3 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.4175, allocations: 43.98 kB / 457.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007223/0.4247, allocations: 8.244 MB / 465.6 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.4247, allocations: 11.28 kB / 465.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00587/0.4306, allocations: 3.831 MB / 469.4 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/0.4322, allocations: 486.3 kB / 469.9 MB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/0.4325, allocations: 47.86 kB / 469.9 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.4336, allocations: 95.89 kB / 470 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.4339, allocations: 108.6 kB / 470.1 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.434, allocations: 51.36 kB / 470.2 MB, free: 8.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002158/0.4362, allocations: 1.386 MB / 471.6 MB, free: 7.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4362, allocations: 4 kB / 471.6 MB, free: 7.008 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001993/0.4382, allocations: 0.5625 MB / 472.1 MB, free: 6.445 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.000451/0.4386, allocations: 208.4 kB / 472.3 MB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003751/0.4424, allocations: 2.64 MB / 475 MB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.4424, allocations: 4 kB / 475 MB, free: 3.613 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.4445, allocations: 1.568 MB / 476.6 MB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/0.4471, allocations: 0.5519 MB / 477.1 MB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01007/0.4572, allocations: 5.864 MB / 483 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001927/0.4591, allocations: 2.255 MB / 485.2 MB, free: 9.277 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001663/0.4608, allocations: 0.5259 MB / 485.8 MB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005083/0.4613, allocations: 163.4 kB / 485.9 MB, free: 8.59 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4613, allocations: 0 / 485.9 MB, free: 8.59 MB / 398.1 MB Notification: Performance of Templates: time 0.05345/0.5148, allocations: 30.82 MB / 0.5046 GB, free: 10.14 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 cvode -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