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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 120.2 kB / 19.18 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 205 kB / 22.12 MB, free: 0.9062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 230.2 MB / 255.2 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 60.09 kB / 374.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1056, allocations: 53.33 MB / 427.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2006/0.3062, allocations: 11 MB / 438.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008214/0.3144, allocations: 3.693 MB / 442.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002452/0.3169, allocations: 83.41 kB / 442.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003086/0.32, allocations: 0.8788 MB / 443.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.3241, allocations: 0.9098 MB / 444.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001773/0.3258, allocations: 464.9 kB / 444.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005483/0.3313, allocations: 2.948 MB / 447.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004449/0.3358, allocations: 1.982 MB / 449.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00341/0.3392, allocations: 1.416 MB / 451.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00454/0.3437, allocations: 1.8 MB / 453.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00126/0.345, allocations: 374.1 kB / 453.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001653/0.3466, allocations: 486.2 kB / 453.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001433/0.3481, allocations: 1.082 MB / 455 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002697/0.3508, allocations: 1.673 MB / 456.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006526/0.3573, allocations: 4.906 MB / 461.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3573, allocations: 0 / 461.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3573, allocations: 1 kB / 461.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001251/0.3574, allocations: 0 / 461.6 MB, free: 9.664 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007785/0.3652, allocations: 3.487 MB / 465.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3652, allocations: 9.031 kB / 465.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.3663, allocations: 365.9 kB / 465.4 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.3698, allocations: 1.847 MB / 467.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.3699, allocations: 191.4 kB / 467.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004089/0.3704, allocations: 251 kB / 467.7 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006057/0.3764, allocations: 3.292 MB / 471 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.149e-05/0.3765, allocations: 4.031 kB / 471 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/0.3767, allocations: 100.5 kB / 471.1 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.3768, allocations: 122.7 kB / 471.2 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004687/0.3815, allocations: 2.75 MB / 474 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01727/0.3988, allocations: 10.41 MB / 484.4 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.4009, allocations: 1.3 MB / 485.7 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.4022, allocations: 0.6954 MB / 486.4 MB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003392/0.4025, allocations: 206.2 kB / 486.6 MB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.4026, allocations: 51.55 kB / 486.6 MB, free: 5.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.474e-06/0.4026, allocations: 0 / 486.6 MB, free: 5.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01651/0.4191, allocations: 6.946 MB / 493.6 MB, free: 14.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.4191, allocations: 64.41 kB / 493.6 MB, free: 14.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003067/0.4222, allocations: 1.79 MB / 495.4 MB, free: 12.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001283/0.4223, allocations: 45.7 kB / 495.5 MB, free: 12.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.4235, allocations: 1.306 MB / 496.8 MB, free: 11.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004626/0.4239, allocations: 452.2 kB / 497.2 MB, free: 10.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/0.4244, allocations: 291.5 kB / 497.5 MB, free: 10.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4245, allocations: 309.1 kB / 497.8 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.4258, allocations: 0.7769 MB / 498.6 MB, free: 9.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001882/0.4277, allocations: 1.292 MB / 499.9 MB, free: 7.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003281/0.431, allocations: 2.21 MB / 0.4903 GB, free: 5.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.431, allocations: 4 kB / 0.4903 GB, free: 5.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004413/0.4354, allocations: 2.487 MB / 0.4927 GB, free: 2.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.4355, allocations: 12 kB / 0.4928 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/0.4355, allocations: 16 kB / 0.4928 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007252/0.4362, allocations: 239.6 kB / 0.493 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.4377, allocations: 415.3 kB / 0.4934 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.4408, allocations: 3.242 MB / 0.4966 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.4424, allocations: 139.8 kB / 0.4967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.4426, allocations: 71.98 kB / 0.4968 GB, free: 14.4 MB / 414.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.001539/0.4441, allocations: 0.8095 MB / 0.4975 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004055/0.4445, allocations: 194.8 kB / 0.4977 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003736/0.4483, allocations: 2.047 MB / 0.4997 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.4483, allocations: 12 kB / 0.4997 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4483, allocations: 0 / 0.4997 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.4483, allocations: 11.98 kB / 0.4998 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00833/0.4566, allocations: 4.742 MB / 0.5044 GB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/0.4566, allocations: 4 kB / 0.5044 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.4578, allocations: 263.6 kB / 0.5046 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000582/0.4584, allocations: 203.5 kB / 0.5048 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-05/0.4585, allocations: 31.92 kB / 0.5049 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/0.4615, allocations: 3.212 MB / 0.508 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/0.4615, allocations: 10.98 kB / 0.508 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005154/0.4667, allocations: 3.144 MB / 0.5111 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.4679, allocations: 435.7 kB / 0.5115 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002985/0.4682, allocations: 24 kB / 0.5115 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.4692, allocations: 99.81 kB / 0.5116 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.4694, allocations: 76.95 kB / 0.5117 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.279e-05/0.4695, allocations: 35.98 kB / 0.5117 GB, free: 14.58 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00207/0.4715, allocations: 1.224 MB / 0.5129 GB, free: 13.36 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4715, allocations: 4 kB / 0.5129 GB, free: 13.36 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001721/0.4732, allocations: 483.9 kB / 0.5134 GB, free: 12.89 MB / 430.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.0004195/0.4737, allocations: 194.9 kB / 0.5136 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003797/0.4775, allocations: 2.276 MB / 0.5158 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.4775, allocations: 0 / 0.5158 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/0.4795, allocations: 1.273 MB / 0.517 GB, free: 8.996 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/0.4822, allocations: 498.5 kB / 0.5175 GB, free: 8.535 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009056/0.4912, allocations: 5.004 MB / 0.5224 GB, free: 3.465 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002106/0.4933, allocations: 1.974 MB / 0.5243 GB, free: 1.461 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007372/0.4941, allocations: 147.4 kB / 0.5245 GB, free: 1.316 MB / 430.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4941, allocations: 0 / 0.5245 GB, free: 1.316 MB / 430.1 MB Notification: Performance of Templates: time 0.1047/0.5988, allocations: 83.25 MB / 0.6058 GB, free: 14.04 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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) [Timeout 480] 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.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.94746549706906]