Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00179/0.002944, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001564/0.002612, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9091/0.9091, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1628/1.072, allocations: 52.48 MB / 238.5 MB, free: 7.637 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.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.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.283e-05, allocations: 2.312 kB / 239.8 MB, free: 6.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01183/0.01186, allocations: 10.61 MB / 250.4 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00845/0.02031, allocations: 3.692 MB / 254.1 MB, free: 8.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002473/0.02278, allocations: 87.38 kB / 254.1 MB, free: 7.941 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.02531, allocations: 0.8368 MB / 255 MB, free: 7.102 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003782/0.02909, allocations: 0.9469 MB / 255.9 MB, free: 6.148 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.03038, allocations: 467.1 kB / 256.4 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003349/0.03373, allocations: 3.039 MB / 259.4 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001854/0.03558, allocations: 1.56 MB / 261 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003487/0.03907, allocations: 2.66 MB / 263.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001976/0.04105, allocations: 1.496 MB / 265.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008264/0.04187, allocations: 360 kB / 265.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008008/0.04267, allocations: 459.8 kB / 265.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006251/0.0433, allocations: 0.865 MB / 266.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.04434, allocations: 0.9162 MB / 267.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00274/0.04708, allocations: 2.453 MB / 270.2 MB, free: 7.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.329e-05/0.0471, allocations: 0 / 270.2 MB, free: 7.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.0471, allocations: 3.938 kB / 270.2 MB, free: 7.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001304/0.04723, allocations: 0 / 270.2 MB, free: 7.766 MB / 266.7 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.004499/0.05173, allocations: 3.681 MB / 273.9 MB, free: 4.039 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.05176, allocations: 11.98 kB / 273.9 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.05247, allocations: 0.5095 MB / 274.4 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00162/0.05409, allocations: 1.303 MB / 275.7 MB, free: 2.141 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.05419, allocations: 193.4 kB / 275.9 MB, free: 1.949 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002657/0.05446, allocations: 252.3 kB / 276.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002095/0.05656, allocations: 1.866 MB / 278 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.166e-05/0.05661, allocations: 7.953 kB / 278 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.05674, allocations: 100 kB / 278.1 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-05/0.05684, allocations: 124.9 kB / 278.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.05789, allocations: 0.747 MB / 279 MB, free: 14.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007119/0.06501, allocations: 6.918 MB / 285.9 MB, free: 7.457 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006286/0.06564, allocations: 0.5179 MB / 286.4 MB, free: 6.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.06605, allocations: 264.2 kB / 286.7 MB, free: 6.668 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.06622, allocations: 48.97 kB / 286.7 MB, free: 6.617 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.06624, allocations: 43.56 kB / 286.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 3.827e-06/0.06625, allocations: 4 kB / 286.7 MB, free: 6.562 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.005726/0.07197, allocations: 2.984 MB / 289.7 MB, free: 3.539 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.07201, allocations: 64.41 kB / 289.8 MB, free: 3.465 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008471/0.07285, allocations: 1.176 MB / 291 MB, free: 2.281 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.07291, allocations: 49.7 kB / 291 MB, free: 2.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004393/0.07335, allocations: 1.093 MB / 292.1 MB, free: 1.121 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.07358, allocations: 448.1 kB / 292.6 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.07383, allocations: 275.4 kB / 292.8 MB, free: 416 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.209e-05/0.0739, allocations: 301.1 kB / 293.1 MB, free: 112 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.07415, allocations: 182.8 kB / 293.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.07469, allocations: 0.6748 MB / 294 MB, free: 15.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008601/0.07555, allocations: 1.107 MB / 295.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.07556, allocations: 8 kB / 295.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001206/0.07676, allocations: 1.031 MB / 296.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.07679, allocations: 16.12 kB / 296.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.0768, allocations: 19.94 kB / 296.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002495/0.07705, allocations: 119.8 kB / 296.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007948/0.07785, allocations: 411.4 kB / 296.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.07911, allocations: 2.415 MB / 299.1 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005718/0.07968, allocations: 64.05 kB / 299.1 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.764e-05/0.07975, allocations: 56 kB / 299.2 MB, free: 9.332 MB / 298.7 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 {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004743/0.08022, allocations: 224 kB / 299.4 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.08042, allocations: 147.8 kB / 299.6 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009094/0.08133, allocations: 0.7709 MB / 300.3 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.08133, allocations: 12 kB / 300.3 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.08134, allocations: 0 / 300.3 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.08135, allocations: 11.97 kB / 300.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00265/0.084, allocations: 2.128 MB / 302.5 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.084, allocations: 4.281 kB / 302.5 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.08455, allocations: 243.7 kB / 302.7 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003173/0.08487, allocations: 226.7 kB / 302.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002603/0.08513, allocations: 148.7 kB / 303.1 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.08517, allocations: 20 kB / 303.1 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.08623, allocations: 2.407 MB / 305.5 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.08623, allocations: 4.031 kB / 305.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.08733, allocations: 1.113 MB / 306.6 MB, free: 1.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.08745, allocations: 28 kB / 306.7 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.08778, allocations: 40.02 kB / 306.7 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.08788, allocations: 80.78 kB / 306.8 MB, free: 1.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.08792, allocations: 27.98 kB / 306.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000461/0.08838, allocations: 0.5799 MB / 307.4 MB, free: 0.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.08838, allocations: 0 / 307.4 MB, free: 0.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001067/0.08945, allocations: 463.9 kB / 307.8 MB, free: 304 kB / 298.7 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 {(1,2,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.000278/0.08973, allocations: 180 kB / 308 MB, free: 112 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.09078, allocations: 1.009 MB / 309 MB, free: 15.08 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.375e-05/0.09082, allocations: 40.42 kB / 309.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.0914, allocations: 0.6671 MB / 309.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.09352, allocations: 4.322 MB / 314.1 MB, free: 9.148 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.1076, allocations: 4.22 MB / 318.3 MB, free: 4.844 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.1082, allocations: 0.5805 MB / 318.9 MB, free: 4.234 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000833/0.109, allocations: 247.1 kB / 319.1 MB, free: 3.988 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007553/0.1098, allocations: 463 kB / 319.5 MB, free: 3.527 MB / 314.7 MB Notification: Performance of SimCode: time 1.883e-06/0.1098, allocations: 0 / 319.5 MB, free: 3.527 MB / 314.7 MB Notification: Performance of Templates: time 0.1389/0.2487, allocations: 25.42 MB / 345 MB, free: 67.96 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.072687378153205]