Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001639/0.001639, allocations: 92.69 kB / 20.95 MB, free: 460 kB / 14.72 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.001734/0.001734, allocations: 146.3 kB / 24.24 MB, free: 3.492 MB / 14.72 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 1.454/1.454, allocations: 173.3 MB / 200.8 MB, free: 12.74 MB / 190.1 MB " [Timeout remaining time 178] 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 267.3 MB, free: 10.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.069e-05/3.243e-05, allocations: 6.25 kB / 267.3 MB, free: 10.17 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01811/0.01815, allocations: 13.28 MB / 280.6 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.02841, allocations: 4.843 MB / 285.5 MB, free: 7.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.03055, allocations: 119.2 kB / 285.6 MB, free: 7.848 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00279/0.03334, allocations: 1.067 MB / 286.6 MB, free: 6.773 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003531/0.03687, allocations: 1.335 MB / 288 MB, free: 5.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.03897, allocations: 0.8648 MB / 288.8 MB, free: 4.562 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005022/0.04399, allocations: 3.761 MB / 292.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002783/0.04678, allocations: 1.846 MB / 294.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003752/0.05053, allocations: 2.612 MB / 297.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002785/0.05331, allocations: 1.722 MB / 298.8 MB, free: 10.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007718/0.05409, allocations: 476 kB / 299.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.05546, allocations: 0.6675 MB / 299.9 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.05665, allocations: 1.18 MB / 301.1 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001845/0.05849, allocations: 1.372 MB / 302.5 MB, free: 6.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007554/0.06605, allocations: 6.325 MB / 308.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.06605, allocations: 7.938 kB / 308.8 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.06605, allocations: 0 / 308.8 MB, free: 500 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.532e-05/0.06615, allocations: 0 / 308.8 MB, free: 500 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.1262/0.1923, allocations: 4.217 MB / 313 MB, free: 47.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.1924, allocations: 9.641 kB / 313 MB, free: 47.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006197/0.1986, allocations: 0.9808 MB / 314 MB, free: 47.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006827/0.2054, allocations: 2.287 MB / 316.3 MB, free: 46.05 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003112/0.2057, allocations: 237.8 kB / 316.5 MB, free: 45.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.2067, allocations: 311.5 kB / 316.8 MB, free: 45.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.2173, allocations: 4.123 MB / 321 MB, free: 44.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/0.2174, allocations: 2.25 kB / 321 MB, free: 44.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004466/0.2179, allocations: 130.1 kB / 321.1 MB, free: 43.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002108/0.2181, allocations: 151 kB / 321.2 MB, free: 43.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008492/0.2266, allocations: 3.38 MB / 324.6 MB, free: 41.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/0.2432, allocations: 11.49 MB / 336.1 MB, free: 29.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002739/0.2459, allocations: 1.68 MB / 337.8 MB, free: 28.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.2472, allocations: 0.9013 MB / 338.7 MB, free: 27.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00323/0.2504, allocations: 2.117 MB / 340.8 MB, free: 25.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.2504, allocations: 47.56 kB / 340.9 MB, free: 25.04 MB / 286.1 MB Notification: Performance of pre-optimization done (n=108): time 3.106e-06/0.2504, allocations: 0 / 340.9 MB, free: 25.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=142): time 0.009436/0.2599, allocations: 5.825 MB / 346.7 MB, free: 19.19 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.2599, allocations: 68.66 kB / 346.7 MB, free: 19.11 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.2617, allocations: 1.743 MB / 348.5 MB, free: 17.36 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.987e-05/0.2618, allocations: 49.7 kB / 348.5 MB, free: 17.31 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005584/0.2624, allocations: 1.562 MB / 350.1 MB, free: 15.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.2626, allocations: 0.495 MB / 350.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/0.263, allocations: 331.4 kB / 350.9 MB, free: 14.92 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.708e-05/0.2631, allocations: 301.1 kB / 351.2 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009431/0.264, allocations: 0.7652 MB / 352 MB, free: 13.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.2652, allocations: 1.404 MB / 353.4 MB, free: 12.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/0.2674, allocations: 2.312 MB / 355.7 MB, free: 9.598 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.2674, allocations: 8 kB / 355.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003423/0.2708, allocations: 2.557 MB / 358.3 MB, free: 7.016 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.2709, allocations: 12 kB / 358.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.2709, allocations: 20 kB / 358.3 MB, free: 6.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003066/0.2712, allocations: 118.5 kB / 358.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.2728, allocations: 487.6 kB / 358.9 MB, free: 6.383 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008619/0.2737, allocations: 1.283 MB / 360.2 MB, free: 5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.2753, allocations: 112 kB / 360.3 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.2754, allocations: 83.98 kB / 360.4 MB, free: 4.809 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001261/0.2767, allocations: 0.9773 MB / 361.3 MB, free: 3.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/0.277, allocations: 246.7 kB / 361.6 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002636/0.2796, allocations: 1.952 MB / 363.5 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.2796, allocations: 12 kB / 363.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2796, allocations: 0 / 363.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.2796, allocations: 7.969 kB / 363.5 MB, free: 1.586 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006747/0.2864, allocations: 4.236 MB / 367.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.2864, allocations: 4 kB / 367.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.2878, allocations: 307.8 kB / 368.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002887/0.288, allocations: 94.52 kB / 368.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-05/0.2881, allocations: 31.94 kB / 368.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.2892, allocations: 1.258 MB / 369.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.2892, allocations: 4 kB / 369.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004821/0.294, allocations: 3.11 MB / 372.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008707/0.2948, allocations: 366.6 kB / 372.9 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000219/0.2951, allocations: 28 kB / 373 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009227/0.296, allocations: 79.91 kB / 373 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.2962, allocations: 101.1 kB / 373.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.668e-05/0.2963, allocations: 36 kB / 373.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00189/0.2982, allocations: 1.152 MB / 374.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2982, allocations: 0 / 374.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001817/0.3, allocations: 0.5273 MB / 374.9 MB, free: 6.082 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.000373/0.3003, allocations: 174.4 kB / 375 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003594/0.3039, allocations: 1.968 MB / 377 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3039, allocations: 0 / 377 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.3056, allocations: 0.9563 MB / 377.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.3078, allocations: 466.8 kB / 378.4 MB, free: 2.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00954/0.3173, allocations: 5.68 MB / 384.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002047/0.3194, allocations: 1.709 MB / 385.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001591/0.321, allocations: 0.4965 MB / 386.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004429/0.3214, allocations: 144.5 kB / 386.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3214, allocations: 0 / 386.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of Templates: time 0.04771/0.3691, allocations: 24.39 MB / 410.8 MB, free: 2.344 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.25065066292882]