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.0007562/0.0007562, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.002884/0.002884, allocations: 149.5 kB / 24.68 MB, free: 9.426 MB / 18.57 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.8049/0.8049, allocations: 173.4 MB / 201.2 MB, free: 9.07 MB / 186.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.1.|smpm.is.2.|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.1.|smpm.is.2.|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.103e-06/1.103e-06, allocations: 0 / 319.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.359e-05/1.469e-05, allocations: 6.219 kB / 319.7 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007134/0.007149, allocations: 9.621 MB / 329.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003518/0.01067, allocations: 3.442 MB / 332.8 MB, free: 8.695 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004978/0.01117, allocations: 83.44 kB / 332.9 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.01239, allocations: 0.8149 MB / 333.7 MB, free: 7.793 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.01352, allocations: 0.9507 MB / 334.6 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004437/0.01396, allocations: 455.3 kB / 335.1 MB, free: 6.391 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.01551, allocations: 3.039 MB / 338.1 MB, free: 3.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.01667, allocations: 1.513 MB / 339.6 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001456/0.01812, allocations: 2.058 MB / 341.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.0192, allocations: 1.512 MB / 343.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002512/0.01945, allocations: 372 kB / 343.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004032/0.01986, allocations: 479.7 kB / 344 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005638/0.02042, allocations: 1.11 MB / 345.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006559/0.02108, allocations: 1.134 MB / 346.3 MB, free: 11.1 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002842/0.02392, allocations: 4.943 MB / 351.2 MB, free: 6.141 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.02392, allocations: 0 / 351.2 MB, free: 6.141 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.02392, allocations: 4 kB / 351.2 MB, free: 6.137 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.02394, allocations: 0 / 351.2 MB, free: 6.137 MB / 314.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.003156/0.0271, allocations: 3.362 MB / 354.6 MB, free: 2.723 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.02713, allocations: 12.86 kB / 354.6 MB, free: 2.711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004505/0.02758, allocations: 354.9 kB / 354.9 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.02956, allocations: 1.743 MB / 356.7 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-05/0.02964, allocations: 193.3 kB / 356.9 MB, free: 400 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/0.02986, allocations: 256.3 kB / 357.1 MB, free: 144 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003018/0.03288, allocations: 3.355 MB / 360.5 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.556e-05/0.03292, allocations: 15.94 kB / 360.5 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.03307, allocations: 100 kB / 360.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-05/0.03315, allocations: 128.9 kB / 360.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002906/0.03605, allocations: 2.744 MB / 363.5 MB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007707/0.04376, allocations: 9.043 MB / 372.5 MB, free: 304 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.04481, allocations: 1.062 MB / 373.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006753/0.04548, allocations: 0.7016 MB / 374.3 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001274/0.04561, allocations: 50.06 kB / 374.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.04563, allocations: 43.56 kB / 374.4 MB, free: 14.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 1.883e-06/0.04563, allocations: 0 / 374.4 MB, free: 14.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.007787/0.05342, allocations: 6.625 MB / 381 MB, free: 7.754 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.05346, allocations: 68.39 kB / 381 MB, free: 7.676 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.05477, allocations: 1.637 MB / 382.7 MB, free: 6.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.797e-05/0.05483, allocations: 45.7 kB / 382.7 MB, free: 5.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008496/0.05568, allocations: 1.325 MB / 384.1 MB, free: 4.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.05588, allocations: 440.3 kB / 384.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002653/0.05615, allocations: 299.4 kB / 384.8 MB, free: 3.914 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.513e-05/0.05622, allocations: 301.1 kB / 385.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007395/0.05695, allocations: 0.7847 MB / 385.9 MB, free: 2.832 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009523/0.05791, allocations: 1.284 MB / 387.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.0597, allocations: 2.21 MB / 389.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.05971, allocations: 7.938 kB / 389.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002555/0.06226, allocations: 2.471 MB / 391.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.06228, allocations: 12 kB / 391.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.0623, allocations: 16 kB / 391.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.06263, allocations: 247.2 kB / 392.1 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007215/0.06335, allocations: 419.7 kB / 392.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.06489, allocations: 2.977 MB / 395.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000596/0.06549, allocations: 123.8 kB / 395.6 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.218e-05/0.06556, allocations: 72 kB / 395.7 MB, free: 8.316 MB / 362.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 {(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.0007811/0.06634, allocations: 0.8212 MB / 396.5 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.0665, allocations: 182.9 kB / 396.7 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/0.06874, allocations: 2.026 MB / 398.7 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.06874, allocations: 12 kB / 398.7 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.06875, allocations: 0 / 398.7 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.06875, allocations: 7.922 kB / 398.7 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004/0.07275, allocations: 4.11 MB / 402.8 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.07276, allocations: 4 kB / 402.8 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.07329, allocations: 267.5 kB / 403.1 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002783/0.07357, allocations: 207.5 kB / 403.3 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/0.07362, allocations: 24 kB / 403.3 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.07531, allocations: 2.962 MB / 406.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.07531, allocations: 4 kB / 406.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.07799, allocations: 3.12 MB / 409.4 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.07846, allocations: 350.7 kB / 409.7 MB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.07856, allocations: 28 kB / 409.8 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004376/0.079, allocations: 91.88 kB / 409.9 MB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.0791, allocations: 88.77 kB / 410 MB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.07915, allocations: 32 kB / 410 MB, free: 9.609 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001042/0.08019, allocations: 1.095 MB / 411.1 MB, free: 8.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.08019, allocations: 0 / 411.1 MB, free: 8.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009313/0.08112, allocations: 488 kB / 411.6 MB, free: 8.043 MB / 378.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 {(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.000276/0.08139, allocations: 202.9 kB / 411.8 MB, free: 7.836 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002501/0.0839, allocations: 2.117 MB / 413.9 MB, free: 5.688 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.0839, allocations: 0 / 413.9 MB, free: 5.688 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.08494, allocations: 1.13 MB / 415 MB, free: 4.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.08599, allocations: 446.2 kB / 415.4 MB, free: 4.094 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005065/0.09106, allocations: 4.897 MB / 420.3 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000959/0.09202, allocations: 1.417 MB / 421.8 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.09235, allocations: 144.5 kB / 421.9 MB, free: 13.52 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/0.09235, allocations: 0 / 421.9 MB, free: 13.52 MB / 394.7 MB Notification: Performance of Templates: time 0.1637/0.2561, allocations: 82.97 MB / 0.493 GB, free: 75.73 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.706008687615395]