Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001176/0.001176, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 59.91 kB / 306.3 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/0.08863, allocations: 50.54 MB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01174/0.1004, allocations: 10.86 MB / 367.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.173/0.2735, allocations: 3.628 MB / 371.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.2757, allocations: 64.44 kB / 371.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.2779, allocations: 0.7115 MB / 372.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002791/0.2808, allocations: 0.7767 MB / 372.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009755/0.2818, allocations: 402.2 kB / 373.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003937/0.2858, allocations: 3.269 MB / 376.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002637/0.2884, allocations: 2.31 MB / 378.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002061/0.2905, allocations: 1.215 MB / 380 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.293, allocations: 1.689 MB / 381.7 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005034/0.2935, allocations: 236.8 kB / 382 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.2946, allocations: 350.4 kB / 382.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.2957, allocations: 0.9303 MB / 383.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.2977, allocations: 1.52 MB / 384.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00475/0.3024, allocations: 4.726 MB / 389.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3025, allocations: 4 kB / 389.5 MB, free: 4.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3025, allocations: 0 / 389.5 MB, free: 4.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001246/0.3026, allocations: 0 / 389.5 MB, free: 4.168 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007038/0.3097, allocations: 3.398 MB / 392.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3097, allocations: 8.25 kB / 392.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.3107, allocations: 349 kB / 393.2 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002843/0.3136, allocations: 1.771 MB / 395 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.3138, allocations: 197.4 kB / 395.2 MB, free: 344 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003908/0.3142, allocations: 257.4 kB / 395.4 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005679/0.3199, allocations: 3.282 MB / 398.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/0.32, allocations: 13.39 kB / 398.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000225/0.3202, allocations: 103.1 kB / 398.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.3203, allocations: 122.6 kB / 399 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004388/0.3247, allocations: 2.753 MB / 401.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.3407, allocations: 10.48 MB / 412.2 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.3424, allocations: 1.362 MB / 413.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001221/0.3437, allocations: 0.784 MB / 414.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003121/0.344, allocations: 210.7 kB / 414.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.344, allocations: 43.56 kB / 414.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.096e-06/0.344, allocations: 0 / 414.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.0149/0.359, allocations: 6.904 MB / 421.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.359, allocations: 64.41 kB / 421.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/0.3616, allocations: 1.794 MB / 423.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.35e-05/0.3617, allocations: 45.7 kB / 423.4 MB, free: 5.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009817/0.3627, allocations: 1.277 MB / 424.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003581/0.3631, allocations: 430.6 kB / 425.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004907/0.3636, allocations: 303.2 kB / 425.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3637, allocations: 305.1 kB / 425.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.3649, allocations: 0.773 MB / 426.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.3664, allocations: 1.294 MB / 427.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002783/0.3692, allocations: 2.212 MB / 430 MB, free: 14.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.3692, allocations: 4 kB / 430 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003862/0.3731, allocations: 2.47 MB / 432.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.3731, allocations: 16.59 kB / 432.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.3731, allocations: 16 kB / 432.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/0.3738, allocations: 239.2 kB / 432.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.3752, allocations: 415.3 kB / 433.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/0.3776, allocations: 3.001 MB / 436.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.3791, allocations: 139.7 kB / 436.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.3792, allocations: 72 kB / 436.3 MB, free: 8.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001501/0.3808, allocations: 0.8095 MB / 437.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.3811, allocations: 189.6 kB / 437.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003258/0.3844, allocations: 2.05 MB / 439.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.3844, allocations: 12 kB / 439.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3844, allocations: 0 / 439.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.3844, allocations: 11.97 kB / 439.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007882/0.3923, allocations: 4.758 MB / 444.1 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.3923, allocations: 4.281 kB / 444.1 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.3935, allocations: 263.6 kB / 444.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005423/0.394, allocations: 206.3 kB / 444.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.515e-05/0.3941, allocations: 24 kB / 444.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.3966, allocations: 2.983 MB / 447.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.3966, allocations: 4 kB / 447.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004874/0.4015, allocations: 3.134 MB / 450.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.4025, allocations: 422.7 kB / 451.2 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.4028, allocations: 24 kB / 451.2 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009424/0.4037, allocations: 99.86 kB / 451.3 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.4039, allocations: 84.83 kB / 451.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.297e-05/0.404, allocations: 36 kB / 451.4 MB, free: 8.605 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001939/0.406, allocations: 1.224 MB / 452.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.406, allocations: 0 / 452.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002013/0.408, allocations: 488 kB / 453.1 MB, free: 6.914 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,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.0004504/0.4085, allocations: 195 kB / 453.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00367/0.4122, allocations: 2.347 MB / 455.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4122, allocations: 0.9375 kB / 455.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.4139, allocations: 1.346 MB / 457 MB, free: 2.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002364/0.4163, allocations: 467.3 kB / 457.4 MB, free: 2.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008426/0.4247, allocations: 6.018 MB / 463.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001678/0.4264, allocations: 2.014 MB / 465.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001708/0.4281, allocations: 0.4999 MB / 466 MB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004582/0.4286, allocations: 135.4 kB / 466.1 MB, free: 9.676 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4286, allocations: 3.938 kB / 466.1 MB, free: 9.672 MB / 382.1 MB Notification: Performance of Templates: time 0.04407/0.4727, allocations: 24.9 MB / 491 MB, free: 1.008 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches