Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001368/0.001368, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.465/1.465, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 68.34 kB / 307.9 MB, free: 472 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09507/0.09704, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01415/0.1112, allocations: 11.45 MB / 369.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1636/0.2749, allocations: 3.58 MB / 373.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001652/0.2766, allocations: 68.5 kB / 373.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.2787, allocations: 0.8368 MB / 374.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.2813, allocations: 0.9298 MB / 375.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009795/0.2823, allocations: 439.6 kB / 375.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00399/0.2863, allocations: 3.742 MB / 379.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003029/0.2894, allocations: 2.875 MB / 382.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.2923, allocations: 1.656 MB / 384 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003595/0.2959, allocations: 1.97 MB / 386 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009146/0.2969, allocations: 418.7 kB / 386.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.2986, allocations: 0.4941 MB / 386.9 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001385/0.3, allocations: 1.197 MB / 388.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003675/0.3037, allocations: 1.935 MB / 390 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006893/0.3106, allocations: 5.491 MB / 395.5 MB, free: 1.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3106, allocations: 0 / 395.5 MB, free: 1.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3106, allocations: 0 / 395.5 MB, free: 1.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001806/0.3108, allocations: 1.062 kB / 395.5 MB, free: 1.066 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.009421/0.3203, allocations: 3.822 MB / 399.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3203, allocations: 7.719 kB / 399.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/0.3215, allocations: 393.5 kB / 399.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003676/0.3252, allocations: 1.987 MB / 401.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.3254, allocations: 216.9 kB / 401.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004639/0.3259, allocations: 281.9 kB / 402.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007189/0.3331, allocations: 3.859 MB / 406 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.378e-05/0.3332, allocations: 13.44 kB / 406.1 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000294/0.3335, allocations: 112 kB / 406.2 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.3336, allocations: 125.5 kB / 406.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006227/0.3399, allocations: 3.254 MB / 409.5 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02288/0.3628, allocations: 11.91 MB / 421.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003807/0.3666, allocations: 3.659 MB / 425.1 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002219/0.3689, allocations: 1.246 MB / 426.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002689/0.3692, allocations: 118.4 kB / 426.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.3692, allocations: 51.88 kB / 426.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.707e-06/0.3692, allocations: 4 kB / 426.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.016/0.3853, allocations: 7.332 MB / 433.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.3854, allocations: 68.72 kB / 433.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0035/0.3889, allocations: 2.064 MB / 436 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.3891, allocations: 53.7 kB / 436 MB, free: 9.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.3902, allocations: 1.38 MB / 437.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005193/0.3908, allocations: 0.5024 MB / 437.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005941/0.3914, allocations: 355.9 kB / 438.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3915, allocations: 301.1 kB / 438.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.3929, allocations: 0.8705 MB / 439.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.3948, allocations: 1.367 MB / 440.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003356/0.3981, allocations: 2.329 MB / 443.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.3982, allocations: 4 kB / 443.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006277/0.4045, allocations: 3.269 MB / 446.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.4045, allocations: 15.94 kB / 446.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/0.4045, allocations: 16 kB / 446.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/0.4071, allocations: 0.8484 MB / 447.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.4085, allocations: 347.4 kB / 447.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02149/0.43, allocations: 20.6 MB / 468.2 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/0.4324, allocations: 95.83 kB / 468.3 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/0.4327, allocations: 72 kB / 468.4 MB, free: 7.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00233/0.435, allocations: 0.9486 MB / 469.3 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/0.4356, allocations: 217.4 kB / 469.5 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00481/0.4404, allocations: 2.631 MB / 472.2 MB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/0.4405, allocations: 16 kB / 472.2 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.4405, allocations: 12 kB / 472.2 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.4405, allocations: 3.984 kB / 472.2 MB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.4517, allocations: 5.898 MB / 478.1 MB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.4517, allocations: 7.984 kB / 478.1 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008252/0.4526, allocations: 195.7 kB / 478.3 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.4547, allocations: 0.7329 MB / 479 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.4548, allocations: 39.98 kB / 479.1 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01893/0.4737, allocations: 18.17 MB / 497.3 MB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.4738, allocations: 4 kB / 497.3 MB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006751/0.4805, allocations: 3.796 MB / 0.4893 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/0.4819, allocations: 482.3 kB / 0.4898 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.4823, allocations: 39.94 kB / 0.4898 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.4834, allocations: 103.9 kB / 0.4899 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/0.4838, allocations: 141 kB / 0.49 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.934e-05/0.4839, allocations: 43.98 kB / 0.4901 GB, free: 4.246 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002672/0.4866, allocations: 1.408 MB / 0.4915 GB, free: 2.816 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4866, allocations: 0 / 0.4915 GB, free: 2.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002874/0.4895, allocations: 0.6601 MB / 0.4921 GB, free: 2.156 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.0005043/0.49, allocations: 214.9 kB / 0.4923 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007965/0.4979, allocations: 4.244 MB / 0.4964 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.498, allocations: 4.375 kB / 0.4965 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003135/0.5011, allocations: 2.208 MB / 0.4986 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/0.5048, allocations: 0.6803 MB / 0.4993 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.5159, allocations: 5.75 MB / 0.5049 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002712/0.5187, allocations: 2.253 MB / 0.5071 GB, free: 2.438 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007637/0.5194, allocations: 139.4 kB / 0.5072 GB, free: 2.301 MB / 430.1 MB Notification: Performance of SimCode: time 1.282e-06/0.5195, allocations: 4 kB / 0.5072 GB, free: 2.297 MB / 430.1 MB Notification: Performance of Templates: time 0.3137/0.8331, allocations: 188.1 MB / 0.6909 GB, free: 4.984 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches