Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 48.06 kB / 378.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2939, allocations: 53.36 MB / 431.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01383/0.3077, allocations: 11.05 MB / 442.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007044/0.3148, allocations: 3.69 MB / 446.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.316, allocations: 87.38 kB / 446.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00195/0.318, allocations: 0.8888 MB / 447.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002426/0.3204, allocations: 0.9165 MB / 448.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009624/0.3214, allocations: 471.2 kB / 448.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.3247, allocations: 2.95 MB / 451.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002176/0.3269, allocations: 1.568 MB / 453.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001928/0.3288, allocations: 1.413 MB / 454.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002433/0.3312, allocations: 1.802 MB / 456.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004946/0.3317, allocations: 376 kB / 456.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008388/0.3326, allocations: 487.8 kB / 457.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001146/0.3337, allocations: 1.095 MB / 458.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.3355, allocations: 1.676 MB / 460.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005191/0.3407, allocations: 4.908 MB / 465 MB, free: 5.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3407, allocations: 4 kB / 465 MB, free: 5.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3407, allocations: 0 / 465 MB, free: 5.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.719e-05/0.3407, allocations: 0 / 465 MB, free: 5.375 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.006548/0.3473, allocations: 3.405 MB / 468.4 MB, free: 1.918 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3473, allocations: 8.031 kB / 468.4 MB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009225/0.3483, allocations: 366.8 kB / 468.8 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00341/0.3517, allocations: 1.756 MB / 470.5 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.3518, allocations: 193.4 kB / 470.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003671/0.3522, allocations: 251.9 kB / 471 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005516/0.3577, allocations: 3.287 MB / 474.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/0.3578, allocations: 4 kB / 474.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002316/0.358, allocations: 107.9 kB / 474.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3582, allocations: 124.9 kB / 474.5 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004708/0.3629, allocations: 2.748 MB / 477.2 MB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01603/0.3789, allocations: 10.22 MB / 487.4 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.3807, allocations: 1.069 MB / 488.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.3819, allocations: 0.7137 MB / 489.2 MB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002304/0.3821, allocations: 58.02 kB / 489.3 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.3822, allocations: 39.56 kB / 489.3 MB, free: 12.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.655e-06/0.3822, allocations: 0 / 489.3 MB, free: 12.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01443/0.3966, allocations: 6.648 MB / 496 MB, free: 5.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.3966, allocations: 68.39 kB / 496 MB, free: 5.715 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002824/0.3995, allocations: 1.79 MB / 497.8 MB, free: 3.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.262e-05/0.3996, allocations: 49.7 kB / 497.9 MB, free: 3.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.4006, allocations: 1.302 MB / 499.2 MB, free: 2.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000399/0.401, allocations: 456.1 kB / 499.6 MB, free: 2.105 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005156/0.4015, allocations: 295.5 kB / 499.9 MB, free: 1.809 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4017, allocations: 305.1 kB / 0.4885 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.4029, allocations: 0.7769 MB / 0.4892 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.4046, allocations: 1.288 MB / 0.4905 GB, free: 15.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00314/0.4077, allocations: 2.214 MB / 0.4927 GB, free: 12.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.4078, allocations: 4 kB / 0.4927 GB, free: 12.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004315/0.4121, allocations: 2.491 MB / 0.4951 GB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.4121, allocations: 12 kB / 0.4951 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.4121, allocations: 16 kB / 0.4951 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006449/0.4128, allocations: 243.2 kB / 0.4954 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.4143, allocations: 415.3 kB / 0.4958 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002922/0.4172, allocations: 3.031 MB / 0.4987 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.4186, allocations: 135.7 kB / 0.4988 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.4187, allocations: 68 kB / 0.4989 GB, free: 6.113 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.001403/0.4201, allocations: 0.8289 MB / 0.4997 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003208/0.4204, allocations: 194.7 kB / 0.4999 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003557/0.424, allocations: 2.039 MB / 0.5019 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.424, allocations: 12 kB / 0.5019 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.424, allocations: 0 / 0.5019 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.424, allocations: 11.97 kB / 0.5019 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008177/0.4322, allocations: 4.705 MB / 0.5065 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4322, allocations: 0 / 0.5065 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.4334, allocations: 271.9 kB / 0.5068 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005457/0.434, allocations: 203.2 kB / 0.507 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.847e-05/0.434, allocations: 24 kB / 0.507 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003002/0.437, allocations: 3.008 MB / 0.5099 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4371, allocations: 4 kB / 0.5099 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004948/0.442, allocations: 3.144 MB / 0.513 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/0.4433, allocations: 358.5 kB / 0.5133 GB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.4435, allocations: 28.06 kB / 0.5134 GB, free: 6.867 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009737/0.4445, allocations: 99.8 kB / 0.5135 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/0.4447, allocations: 84.78 kB / 0.5135 GB, free: 6.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.979e-05/0.4448, allocations: 32 kB / 0.5136 GB, free: 6.656 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002182/0.447, allocations: 1.224 MB / 0.5148 GB, free: 5.441 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.447, allocations: 4 kB / 0.5148 GB, free: 5.438 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001782/0.4487, allocations: 491.9 kB / 0.5152 GB, free: 4.957 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.0004244/0.4492, allocations: 197.1 kB / 0.5154 GB, free: 4.762 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003667/0.4528, allocations: 2.125 MB / 0.5175 GB, free: 2.609 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4528, allocations: 0 / 0.5175 GB, free: 2.609 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0018/0.4546, allocations: 1.13 MB / 0.5186 GB, free: 1.445 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/0.4567, allocations: 495.8 kB / 0.5191 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008538/0.4652, allocations: 4.967 MB / 0.5239 GB, free: 11.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001914/0.4671, allocations: 2.014 MB / 0.5259 GB, free: 9.887 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001425/0.4685, allocations: 500 kB / 0.5264 GB, free: 9.395 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004553/0.469, allocations: 139.4 kB / 0.5265 GB, free: 9.258 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.469, allocations: 4 kB / 0.5265 GB, free: 9.254 MB / 446.1 MB Notification: Performance of Templates: time 0.2873/0.7563, allocations: 27.64 MB / 0.5535 GB, free: 92.93 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.867235627025366]