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.001888/0.001888, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002359/0.002359, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.449/1.449, allocations: 230.5 MB / 257.4 MB, free: 7.812 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.001996/0.001996, allocations: 63.91 kB / 378.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2743, allocations: 53.41 MB / 431.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01459/0.2889, allocations: 9.649 MB / 441.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00828/0.2972, allocations: 3.47 MB / 444.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001986/0.2991, allocations: 95.38 kB / 444.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002568/0.3017, allocations: 0.8034 MB / 445.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003328/0.305, allocations: 0.9204 MB / 446.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.3065, allocations: 467.3 kB / 447 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004406/0.3109, allocations: 2.949 MB / 450 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002953/0.3138, allocations: 1.502 MB / 451.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002242/0.3161, allocations: 1.425 MB / 452.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003082/0.3192, allocations: 1.685 MB / 454.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009327/0.3201, allocations: 376 kB / 455 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001547/0.3216, allocations: 479.8 kB / 455.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.3233, allocations: 1.095 MB / 456.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002496/0.3258, allocations: 1.346 MB / 457.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005681/0.3315, allocations: 4.938 MB / 462.8 MB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3315, allocations: 0 / 462.8 MB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3315, allocations: 0 / 462.8 MB, free: 7.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001034/0.3316, allocations: 0 / 462.8 MB, free: 7.207 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.006753/0.3383, allocations: 3.402 MB / 466.2 MB, free: 3.754 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3384, allocations: 12.03 kB / 466.2 MB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000941/0.3393, allocations: 362.8 kB / 466.6 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003523/0.3428, allocations: 1.76 MB / 468.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.343, allocations: 185.4 kB / 468.5 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004204/0.3434, allocations: 255.9 kB / 468.8 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005968/0.3494, allocations: 3.362 MB / 472.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.502e-05/0.3495, allocations: 11.89 kB / 472.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.3497, allocations: 100 kB / 472.3 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.3499, allocations: 120.9 kB / 472.4 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005136/0.355, allocations: 2.744 MB / 475.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01742/0.3724, allocations: 9.032 MB / 484.1 MB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.3743, allocations: 1.066 MB / 485.2 MB, free: 256 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.3756, allocations: 0.7071 MB / 485.9 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002356/0.3759, allocations: 52.97 kB / 486 MB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.3759, allocations: 47.5 kB / 486 MB, free: 15.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.116e-06/0.3759, allocations: 0 / 486 MB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01577/0.3917, allocations: 6.626 MB / 492.6 MB, free: 8.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.3917, allocations: 64.41 kB / 492.7 MB, free: 8.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/0.3946, allocations: 1.641 MB / 494.3 MB, free: 7.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.14e-05/0.3947, allocations: 49.7 kB / 494.4 MB, free: 6.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/0.3957, allocations: 1.329 MB / 495.7 MB, free: 5.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004082/0.3961, allocations: 448.2 kB / 496.2 MB, free: 5.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000487/0.3966, allocations: 295.4 kB / 496.5 MB, free: 4.914 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3968, allocations: 305.1 kB / 496.8 MB, free: 4.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.398, allocations: 0.7807 MB / 497.5 MB, free: 3.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/0.3998, allocations: 1.292 MB / 498.8 MB, free: 2.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003144/0.4029, allocations: 2.21 MB / 0.4893 GB, free: 15.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.516e-05/0.4029, allocations: 4 kB / 0.4893 GB, free: 15.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004331/0.4072, allocations: 2.467 MB / 0.4917 GB, free: 13.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.4073, allocations: 12.81 kB / 0.4917 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.409e-05/0.4073, allocations: 16 kB / 0.4917 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006673/0.408, allocations: 251.2 kB / 0.492 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.4095, allocations: 415.3 kB / 0.4924 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.4125, allocations: 2.981 MB / 0.4953 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.4139, allocations: 131.7 kB / 0.4954 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.414, allocations: 72.06 kB / 0.4955 GB, free: 9.301 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.001448/0.4155, allocations: 0.8314 MB / 0.4963 GB, free: 8.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004123/0.4159, allocations: 182.8 kB / 0.4965 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.4195, allocations: 2.022 MB / 0.4984 GB, free: 6.238 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4196, allocations: 12.14 kB / 0.4984 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.4196, allocations: 4 kB / 0.4984 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.4196, allocations: 15.95 kB / 0.4985 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008056/0.4276, allocations: 4.107 MB / 0.5025 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.4276, allocations: 7.984 kB / 0.5025 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.4288, allocations: 259.6 kB / 0.5027 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005792/0.4294, allocations: 207.2 kB / 0.5029 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.413e-05/0.4295, allocations: 24 kB / 0.5029 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002926/0.4324, allocations: 2.954 MB / 0.5058 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.4324, allocations: 0 / 0.5058 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005023/0.4374, allocations: 3.136 MB / 0.5089 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.4386, allocations: 334.7 kB / 0.5092 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003886/0.4389, allocations: 20 kB / 0.5092 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.44, allocations: 95.86 kB / 0.5093 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.4402, allocations: 92.72 kB / 0.5094 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.852e-05/0.4403, allocations: 36 kB / 0.5094 GB, free: 10.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.4423, allocations: 1.103 MB / 0.5105 GB, free: 9.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4423, allocations: 3.938 kB / 0.5105 GB, free: 9.496 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002041/0.4443, allocations: 487.9 kB / 0.511 GB, free: 9.02 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.0004553/0.4448, allocations: 182.9 kB / 0.5112 GB, free: 8.832 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003821/0.4486, allocations: 2.121 MB / 0.5132 GB, free: 6.684 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/0.4486, allocations: 4 kB / 0.5132 GB, free: 6.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.4505, allocations: 1.122 MB / 0.5143 GB, free: 5.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.4526, allocations: 438.5 kB / 0.5148 GB, free: 5.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00856/0.4612, allocations: 4.95 MB / 0.5196 GB, free: 84 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00192/0.4631, allocations: 1.437 MB / 0.521 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001372/0.4645, allocations: 494.8 kB / 0.5215 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/0.4649, allocations: 127.4 kB / 0.5216 GB, free: 14 MB / 446.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4649, allocations: 3.938 kB / 0.5216 GB, free: 13.99 MB / 446.1 MB Notification: Performance of Templates: time 0.2427/0.7076, allocations: 28 MB / 0.5489 GB, free: 96 MB / 446.1 MB " [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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.820896180346608]