Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001674/0.001674, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001913/0.001913, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 55.91 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3349, allocations: 50.56 MB / 409.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0158/0.3508, allocations: 11.91 MB / 421.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008728/0.3596, allocations: 4.042 MB / 425.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002424/0.362, allocations: 75.69 kB / 425.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.3646, allocations: 0.9393 MB / 426.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003851/0.3685, allocations: 1.017 MB / 427.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.3699, allocations: 0.5617 MB / 427.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004655/0.3746, allocations: 3.414 MB / 431.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003502/0.3781, allocations: 3.085 MB / 434.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.3803, allocations: 1.6 MB / 435.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002536/0.3829, allocations: 2.036 MB / 438 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006484/0.3836, allocations: 440 kB / 438.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000975/0.3845, allocations: 0.5389 MB / 438.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001354/0.3859, allocations: 1.258 MB / 440.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002277/0.3882, allocations: 1.944 MB / 442.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006907/0.3951, allocations: 5.697 MB / 447.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3952, allocations: 0 / 447.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3952, allocations: 0 / 447.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001221/0.3953, allocations: 0 / 447.8 MB, free: 10.79 MB / 366.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.009903/0.4052, allocations: 3.947 MB / 451.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.383e-05/0.4053, allocations: 12.03 kB / 451.8 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.4067, allocations: 412.4 kB / 452.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004251/0.4109, allocations: 2.13 MB / 454.3 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.4111, allocations: 234.2 kB / 454.5 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000477/0.4116, allocations: 295.8 kB / 454.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007262/0.4189, allocations: 3.847 MB / 458.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.33e-05/0.419, allocations: 7.906 kB / 458.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/0.4193, allocations: 116 kB / 458.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001856/0.4195, allocations: 153.7 kB / 459 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006156/0.4257, allocations: 3.251 MB / 462.2 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02157/0.4473, allocations: 12.02 MB / 474.2 MB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.4499, allocations: 1.945 MB / 476.2 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.4518, allocations: 1.153 MB / 477.3 MB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003443/0.4522, allocations: 211.5 kB / 477.5 MB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/0.4522, allocations: 47.88 kB / 477.6 MB, free: 12.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.306e-06/0.4522, allocations: 0 / 477.6 MB, free: 12.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01451/0.4668, allocations: 7.014 MB / 484.6 MB, free: 5.141 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.4669, allocations: 68.72 kB / 484.7 MB, free: 5.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003407/0.4703, allocations: 2.032 MB / 486.7 MB, free: 2.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/0.4705, allocations: 53.7 kB / 486.7 MB, free: 2.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.4716, allocations: 1.463 MB / 488.2 MB, free: 1.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005493/0.4722, allocations: 0.5314 MB / 488.7 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005701/0.4728, allocations: 347.3 kB / 489.1 MB, free: 0.5664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4729, allocations: 305.1 kB / 489.4 MB, free: 272 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/0.4743, allocations: 0.8784 MB / 490.2 MB, free: 15.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.4762, allocations: 1.458 MB / 491.7 MB, free: 13.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/0.4796, allocations: 2.498 MB / 494.2 MB, free: 10.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.4796, allocations: 8 kB / 494.2 MB, free: 10.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005196/0.4848, allocations: 3.018 MB / 497.2 MB, free: 7.863 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.4849, allocations: 15.98 kB / 497.2 MB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.268e-05/0.4849, allocations: 16 kB / 497.3 MB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009787/0.4859, allocations: 391.6 kB / 497.6 MB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.4875, allocations: 471.2 kB / 498.1 MB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005883/0.4934, allocations: 6.693 MB / 0.493 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002046/0.4955, allocations: 131.9 kB / 0.4931 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/0.4957, allocations: 87.92 kB / 0.4932 GB, free: 15.65 MB / 430.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.002479/0.4982, allocations: 0.9421 MB / 0.4941 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/0.4993, allocations: 217.3 kB / 0.4943 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006911/0.5062, allocations: 2.606 MB / 0.4968 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/0.5062, allocations: 16 kB / 0.4969 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/0.5063, allocations: 7.984 kB / 0.4969 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/0.5063, allocations: 7.969 kB / 0.4969 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.5223, allocations: 5.818 MB / 0.5026 GB, free: 5.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.5223, allocations: 4 kB / 0.5026 GB, free: 5.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.5242, allocations: 291.5 kB / 0.5028 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.5257, allocations: 407.4 kB / 0.5032 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001974/0.5259, allocations: 35.98 kB / 0.5033 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/0.5379, allocations: 8.261 MB / 0.5113 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.38e-05/0.538, allocations: 11.92 kB / 0.5113 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009857/0.5479, allocations: 3.83 MB / 0.5151 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/0.5497, allocations: 494.3 kB / 0.5156 GB, free: 7.832 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005393/0.5503, allocations: 36 kB / 0.5156 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/0.5522, allocations: 103.8 kB / 0.5157 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003839/0.5526, allocations: 105.1 kB / 0.5158 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001781/0.5528, allocations: 51.98 kB / 0.5158 GB, free: 7.543 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003476/0.5563, allocations: 1.39 MB / 0.5172 GB, free: 6.133 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5563, allocations: 0 / 0.5172 GB, free: 6.133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003413/0.5597, allocations: 0.5625 MB / 0.5177 GB, free: 5.57 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.0006607/0.5604, allocations: 206.2 kB / 0.5179 GB, free: 5.363 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006552/0.567, allocations: 2.648 MB / 0.5205 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.567, allocations: 0.8125 kB / 0.5205 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003475/0.5705, allocations: 1.569 MB / 0.5221 GB, free: 1.039 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/0.5747, allocations: 0.5472 MB / 0.5226 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.587, allocations: 5.868 MB / 0.5283 GB, free: 10.55 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001946/0.5889, allocations: 2.255 MB / 0.5305 GB, free: 8.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001542/0.5905, allocations: 0.5221 MB / 0.531 GB, free: 7.742 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004689/0.591, allocations: 163.4 kB / 0.5312 GB, free: 7.582 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.591, allocations: 4 kB / 0.5312 GB, free: 7.578 MB / 462.1 MB Notification: Performance of Templates: time 0.272/0.863, allocations: 31.46 MB / 0.5619 GB, free: 110.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches