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.001096/0.001101, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 59.94 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09835, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01138/0.1098, allocations: 10.94 MB / 369.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1659/0.2757, allocations: 3.676 MB / 373.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.2774, allocations: 65.72 kB / 373.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.2794, allocations: 0.8191 MB / 374.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.282, allocations: 0.861 MB / 375.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.283, allocations: 463.6 kB / 375.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003022/0.2861, allocations: 2.946 MB / 378.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002719/0.2888, allocations: 2.737 MB / 381.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002001/0.2908, allocations: 1.381 MB / 382.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002036/0.2929, allocations: 1.753 MB / 384.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004799/0.2934, allocations: 372.9 kB / 384.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009925/0.2944, allocations: 480.1 kB / 385.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.2954, allocations: 1.074 MB / 386.5 MB, free: 7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.2968, allocations: 1.676 MB / 388.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.3007, allocations: 4.895 MB / 393 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3008, allocations: 0 / 393 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3008, allocations: 0 / 393 MB, free: 3.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.1e-05/0.3009, allocations: 0 / 393 MB, free: 3.199 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.00564/0.3065, allocations: 3.4 MB / 396.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3066, allocations: 8.188 kB / 396.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008363/0.3074, allocations: 343.9 kB / 396.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002999/0.3104, allocations: 1.827 MB / 398.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.3106, allocations: 196 kB / 398.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003203/0.3109, allocations: 254.6 kB / 399 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004718/0.3156, allocations: 3.278 MB / 402.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.899e-05/0.3157, allocations: 11.91 kB / 402.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002278/0.3159, allocations: 110.9 kB / 402.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.316, allocations: 120.9 kB / 402.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004206/0.3203, allocations: 2.748 MB / 405.3 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01546/0.3357, allocations: 10.38 MB / 415.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002117/0.3379, allocations: 1.366 MB / 417 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.3391, allocations: 0.789 MB / 417.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003389/0.3395, allocations: 202 kB / 418 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/0.3396, allocations: 43.55 kB / 418.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.266e-06/0.3396, allocations: 0 / 418.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01466/0.3542, allocations: 6.904 MB / 425 MB, free: 6.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.3543, allocations: 68.34 kB / 425 MB, free: 6.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002636/0.357, allocations: 1.798 MB / 426.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.429e-05/0.3571, allocations: 45.7 kB / 426.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007707/0.3578, allocations: 1.269 MB / 428.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002943/0.3581, allocations: 431.7 kB / 428.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004661/0.3586, allocations: 295.2 kB / 428.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3587, allocations: 305.1 kB / 429.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.3599, allocations: 0.7769 MB / 429.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.3613, allocations: 1.299 MB / 431.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.3639, allocations: 2.208 MB / 433.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.364, allocations: 4 kB / 433.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003781/0.3678, allocations: 2.474 MB / 435.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.3678, allocations: 12 kB / 435.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.3678, allocations: 16 kB / 436 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006052/0.3684, allocations: 239.2 kB / 436.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.3699, allocations: 423.5 kB / 436.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/0.3724, allocations: 3.238 MB / 439.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3738, allocations: 123.8 kB / 440 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.3739, allocations: 71.98 kB / 440 MB, free: 6.258 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.001292/0.3752, allocations: 0.8174 MB / 440.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.3755, allocations: 189.6 kB / 441 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003105/0.3786, allocations: 2.046 MB / 443.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.3786, allocations: 12 kB / 443.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3786, allocations: 0 / 443.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3787, allocations: 3.984 kB / 443.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007179/0.3858, allocations: 4.749 MB / 447.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.3859, allocations: 8.219 kB / 447.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.3869, allocations: 267.6 kB / 448.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005054/0.3874, allocations: 191.3 kB / 448.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.967e-05/0.3875, allocations: 27.98 kB / 448.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002348/0.3899, allocations: 3.222 MB / 451.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3899, allocations: 7.938 kB / 451.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004055/0.394, allocations: 3.128 MB / 454.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008385/0.3948, allocations: 434.7 kB / 455.1 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.395, allocations: 24 kB / 455.1 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009101/0.396, allocations: 91.88 kB / 455.2 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.3961, allocations: 84.77 kB / 455.3 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/0.3962, allocations: 35.98 kB / 455.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001669/0.3979, allocations: 1.228 MB / 456.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3979, allocations: 0 / 456.6 MB, free: 5.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001421/0.3993, allocations: 492 kB / 457 MB, free: 4.762 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.0003497/0.3997, allocations: 202.6 kB / 457.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003146/0.4029, allocations: 2.351 MB / 459.6 MB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4029, allocations: 0 / 459.6 MB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.4046, allocations: 1.339 MB / 460.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.4065, allocations: 0.4964 MB / 461.4 MB, free: 264 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006786/0.4133, allocations: 4.851 MB / 466.3 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.4149, allocations: 2.014 MB / 468.3 MB, free: 9.297 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001257/0.4162, allocations: 0.496 MB / 468.8 MB, free: 8.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/0.4166, allocations: 139.4 kB / 468.9 MB, free: 8.66 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4166, allocations: 0 / 468.9 MB, free: 8.66 MB / 382.1 MB Notification: Performance of Templates: time 0.04092/0.4576, allocations: 25.82 MB / 494.8 MB, free: 15.1 MB / 414.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/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