Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.0008989/0.0008989, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0009259/0.0009259, allocations: 167 kB / 25.45 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9053/0.9053, allocations: 158.6 MB / 187.2 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 299.7 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.056e-05, allocations: 2.281 kB / 299.7 MB, free: 6.895 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01011/0.01013, allocations: 13.2 MB / 312.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006973/0.0171, allocations: 4.878 MB / 317.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.01829, allocations: 111.2 kB / 317.9 MB, free: 4.625 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.01992, allocations: 1.056 MB / 319 MB, free: 3.562 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001921/0.02184, allocations: 1.285 MB / 320.2 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.02308, allocations: 0.8921 MB / 321.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002314/0.02539, allocations: 3.786 MB / 324.9 MB, free: 13.58 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001537/0.02693, allocations: 1.806 MB / 326.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.02901, allocations: 2.589 MB / 329.3 MB, free: 9.109 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.03039, allocations: 1.722 MB / 331 MB, free: 7.383 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000365/0.03076, allocations: 476 kB / 331.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000699/0.03146, allocations: 0.6675 MB / 332.2 MB, free: 6.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006102/0.03207, allocations: 1.176 MB / 333.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009013/0.03297, allocations: 1.372 MB / 334.7 MB, free: 3.695 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003874/0.03684, allocations: 6.318 MB / 341 MB, free: 13.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.03685, allocations: 0 / 341 MB, free: 13.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.03685, allocations: 0 / 341 MB, free: 13.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.616e-05/0.03689, allocations: 0 / 341 MB, free: 13.36 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.005093/0.04199, allocations: 4.205 MB / 345.2 MB, free: 9.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.04203, allocations: 12.03 kB / 345.3 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.04337, allocations: 0.6349 MB / 345.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002188/0.04556, allocations: 2.053 MB / 347.9 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.04568, allocations: 238.7 kB / 348.2 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003017/0.04598, allocations: 316.3 kB / 348.5 MB, free: 5.797 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004364/0.05035, allocations: 4.119 MB / 352.6 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.526e-05/0.0504, allocations: 7.875 kB / 352.6 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/0.05061, allocations: 128 kB / 352.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.05071, allocations: 150.2 kB / 352.9 MB, free: 1.316 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1401/0.1908, allocations: 3.359 MB / 356.2 MB, free: 57.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.2028, allocations: 11.28 MB / 367.5 MB, free: 51.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.2048, allocations: 1.67 MB / 369.2 MB, free: 50.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009427/0.2057, allocations: 0.9089 MB / 370.1 MB, free: 49.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002363/0.2081, allocations: 2.092 MB / 372.2 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.2081, allocations: 49.25 kB / 372.2 MB, free: 48.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=108): time 3.166e-06/0.2081, allocations: 1.031 kB / 372.2 MB, free: 48.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=142): time 0.00596/0.2141, allocations: 5.811 MB / 378.1 MB, free: 44.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.2141, allocations: 72.66 kB / 378.1 MB, free: 44.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.2154, allocations: 1.732 MB / 379.9 MB, free: 42.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.66e-05/0.2155, allocations: 49.7 kB / 379.9 MB, free: 42.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00045/0.2159, allocations: 1.56 MB / 381.5 MB, free: 41.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.2161, allocations: 0.4991 MB / 382 MB, free: 40.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/0.2164, allocations: 331.4 kB / 382.3 MB, free: 40.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.876e-05/0.2164, allocations: 301.1 kB / 382.6 MB, free: 39.92 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006616/0.2171, allocations: 0.7691 MB / 383.4 MB, free: 39.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000831/0.2179, allocations: 1.403 MB / 384.8 MB, free: 37.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.2195, allocations: 2.319 MB / 387.1 MB, free: 34.9 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.2195, allocations: 8 kB / 387.1 MB, free: 34.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001988/0.2215, allocations: 2.463 MB / 389.5 MB, free: 32.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.2215, allocations: 14.62 kB / 389.6 MB, free: 32.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.2215, allocations: 24.12 kB / 389.6 MB, free: 32.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002046/0.2217, allocations: 118.5 kB / 389.7 MB, free: 32.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008367/0.2226, allocations: 491.2 kB / 390.2 MB, free: 31.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005179/0.2231, allocations: 1.29 MB / 391.5 MB, free: 30.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000597/0.2237, allocations: 111.8 kB / 391.6 MB, free: 30.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/0.2238, allocations: 83.98 kB / 391.7 MB, free: 30.19 MB / 330.7 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.0009398/0.2247, allocations: 0.9814 MB / 392.6 MB, free: 29.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.2249, allocations: 190.8 kB / 392.8 MB, free: 29.01 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/0.2265, allocations: 1.956 MB / 394.8 MB, free: 27.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2265, allocations: 12 kB / 394.8 MB, free: 27.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2265, allocations: 0 / 394.8 MB, free: 27.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2265, allocations: 11.97 kB / 394.8 MB, free: 27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003692/0.2302, allocations: 4.222 MB / 399 MB, free: 22.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2302, allocations: 0 / 399 MB, free: 22.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006319/0.2309, allocations: 311.6 kB / 399.3 MB, free: 22.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001516/0.231, allocations: 98.67 kB / 399.4 MB, free: 22.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.2311, allocations: 36 kB / 399.5 MB, free: 22.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003755/0.2315, allocations: 1.244 MB / 400.7 MB, free: 20.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.2315, allocations: 4 kB / 400.7 MB, free: 20.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.234, allocations: 3.071 MB / 403.8 MB, free: 17.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.2345, allocations: 370.6 kB / 404.1 MB, free: 17.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.2347, allocations: 24 kB / 404.2 MB, free: 17.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.2352, allocations: 83.91 kB / 404.3 MB, free: 17.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.975e-05/0.2353, allocations: 101.1 kB / 404.4 MB, free: 17.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.2353, allocations: 36 kB / 404.4 MB, free: 17.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008811/0.2362, allocations: 1.148 MB / 405.5 MB, free: 16.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2362, allocations: 0 / 405.5 MB, free: 16.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001115/0.2373, allocations: 0.5312 MB / 406.1 MB, free: 15.55 MB / 330.7 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.0002604/0.2376, allocations: 166.9 kB / 406.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.2394, allocations: 1.974 MB / 408.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2394, allocations: 0 / 408.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008197/0.2402, allocations: 0.9573 MB / 409.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.2414, allocations: 464.7 kB / 409.6 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005488/0.2469, allocations: 5.604 MB / 415.2 MB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008686/0.2477, allocations: 1.662 MB / 416.9 MB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003479/0.2481, allocations: 172.5 kB / 417.1 MB, free: 4.438 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.2481, allocations: 0 / 417.1 MB, free: 4.438 MB / 330.7 MB Notification: Performance of Templates: time 0.06844/0.3165, allocations: 86.35 MB / 0.4916 GB, free: 13.93 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.891741474159062]