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.001203/0.001203, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003825/0.003825, allocations: 160.9 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8747/0.8747, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.322e-06/1.322e-06, allocations: 0 / 325.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.298e-05/1.43e-05, allocations: 2.281 kB / 325.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007033/0.007047, allocations: 9.679 MB / 335.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004393/0.01144, allocations: 3.486 MB / 339 MB, free: 2.051 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006863/0.01213, allocations: 87.38 kB / 339.1 MB, free: 1.965 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.01329, allocations: 0.8149 MB / 339.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001339/0.01463, allocations: 0.9469 MB / 340.9 MB, free: 192 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.01516, allocations: 463.2 kB / 341.3 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001809/0.01696, allocations: 3.046 MB / 344.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.01824, allocations: 1.509 MB / 345.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.0197, allocations: 2.062 MB / 347.9 MB, free: 9.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.0209, allocations: 1.524 MB / 349.5 MB, free: 7.516 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002881/0.02119, allocations: 376 kB / 349.8 MB, free: 7.148 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004489/0.02164, allocations: 483.7 kB / 350.3 MB, free: 6.676 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006044/0.02224, allocations: 1.118 MB / 351.4 MB, free: 5.555 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007649/0.02301, allocations: 1.134 MB / 352.5 MB, free: 4.418 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00284/0.02585, allocations: 4.958 MB / 357.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.02585, allocations: 0 / 357.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.02585, allocations: 0 / 357.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.244e-05/0.02588, allocations: 4 kB / 357.5 MB, free: 15.44 MB / 330.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.003412/0.0293, allocations: 3.362 MB / 360.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.02933, allocations: 12.03 kB / 360.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005328/0.02986, allocations: 366.8 kB / 361.2 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.03169, allocations: 1.755 MB / 363 MB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.756e-05/0.03179, allocations: 189.4 kB / 363.2 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002324/0.03202, allocations: 252.3 kB / 363.4 MB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00312/0.03514, allocations: 3.359 MB / 366.8 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.443e-05/0.03518, allocations: 4 kB / 366.8 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001506/0.03533, allocations: 103.9 kB / 366.9 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.06e-05/0.03541, allocations: 136.9 kB / 367 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.03815, allocations: 2.74 MB / 369.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007782/0.04593, allocations: 9.039 MB / 378.8 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.04701, allocations: 1.062 MB / 379.9 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006921/0.0477, allocations: 0.7042 MB / 380.6 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.04784, allocations: 48.95 kB / 380.6 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.04787, allocations: 43.56 kB / 380.7 MB, free: 7.711 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 2.194e-06/0.04787, allocations: 0 / 380.7 MB, free: 7.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.007698/0.05557, allocations: 6.641 MB / 387.3 MB, free: 1.035 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.05561, allocations: 68.41 kB / 387.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.05694, allocations: 1.645 MB / 389 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.676e-05/0.057, allocations: 45.7 kB / 389.1 MB, free: 15.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005456/0.05755, allocations: 1.321 MB / 390.4 MB, free: 13.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.05776, allocations: 440.3 kB / 390.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002664/0.05802, allocations: 295.4 kB / 391.1 MB, free: 13.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.05809, allocations: 301.1 kB / 391.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007304/0.05882, allocations: 0.7769 MB / 392.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009351/0.05975, allocations: 1.292 MB / 393.5 MB, free: 10.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/0.0615, allocations: 2.21 MB / 395.7 MB, free: 8.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.0615, allocations: 11.98 kB / 395.7 MB, free: 8.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002285/0.06379, allocations: 2.471 MB / 398.2 MB, free: 5.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.06381, allocations: 15.94 kB / 398.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.06382, allocations: 16 kB / 398.2 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000337/0.06416, allocations: 235.2 kB / 398.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.06489, allocations: 415.3 kB / 398.8 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/0.06646, allocations: 2.985 MB / 401.8 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005488/0.067, allocations: 135.8 kB / 401.9 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/0.06708, allocations: 71.98 kB / 402 MB, free: 1.578 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.0007548/0.06783, allocations: 0.8143 MB / 402.8 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.068, allocations: 186.8 kB / 403 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.06993, allocations: 2.033 MB / 405 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.06994, allocations: 12 kB / 405.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.06994, allocations: 0 / 405.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.06995, allocations: 7.969 kB / 405.1 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00395/0.0739, allocations: 4.111 MB / 409.2 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.0739, allocations: 0 / 409.2 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005308/0.07443, allocations: 263.6 kB / 409.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/0.07471, allocations: 203.5 kB / 409.6 MB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/0.07476, allocations: 24 kB / 409.6 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.0762, allocations: 2.962 MB / 412.6 MB, free: 6.637 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.0762, allocations: 7.969 kB / 412.6 MB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00267/0.07887, allocations: 3.124 MB / 415.7 MB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004111/0.07928, allocations: 342.6 kB / 416.1 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.07939, allocations: 27.94 kB / 416.1 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.07982, allocations: 99.98 kB / 416.2 MB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.717e-05/0.07992, allocations: 80.84 kB / 416.3 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.07996, allocations: 32 kB / 416.3 MB, free: 2.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009273/0.08089, allocations: 1.099 MB / 417.4 MB, free: 1.789 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.08089, allocations: 0 / 417.4 MB, free: 1.789 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007963/0.08168, allocations: 483.9 kB / 417.9 MB, free: 1.316 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.0002676/0.08195, allocations: 198.9 kB / 418.1 MB, free: 1.109 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.08392, allocations: 2.122 MB / 420.2 MB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.08392, allocations: 0 / 420.2 MB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009559/0.08487, allocations: 1.118 MB / 421.3 MB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.08592, allocations: 443.1 kB / 421.8 MB, free: 13.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004623/0.09054, allocations: 4.919 MB / 426.7 MB, free: 8.395 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009526/0.09149, allocations: 1.404 MB / 428.1 MB, free: 6.953 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003215/0.09181, allocations: 148.5 kB / 428.2 MB, free: 6.805 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.09181, allocations: 0 / 428.2 MB, free: 6.805 MB / 394.7 MB Notification: Performance of Templates: time 0.1631/0.2549, allocations: 83.09 MB / 0.4993 GB, free: 60.32 MB / 410.7 MB " [Timeout remaining time 660] 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: 7.688086819835007]