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.001731/0.001731, allocations: 96.3 kB / 21.73 MB, free: 2.699 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.002086/0.002086, allocations: 159.8 kB / 25.02 MB, free: 8.422 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 1.435/1.435, allocations: 158.6 MB / 186.8 MB, free: 2.875 MB / 170.7 MB " [Timeout remaining time 178] 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.613e-06/1.613e-06, allocations: 0 / 250.4 MB, free: 3.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.006e-05/3.167e-05, allocations: 6.312 kB / 250.4 MB, free: 3.91 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01955/0.01958, allocations: 13.21 MB / 263.6 MB, free: 6.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.0313, allocations: 4.883 MB / 268.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002725/0.03402, allocations: 111.2 kB / 268.6 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0037/0.03772, allocations: 1.063 MB / 269.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004941/0.04266, allocations: 1.277 MB / 270.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.04565, allocations: 0.896 MB / 271.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00623/0.05188, allocations: 3.777 MB / 275.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003275/0.05516, allocations: 1.802 MB / 277.4 MB, free: 8.699 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004844/0.06, allocations: 2.589 MB / 280 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003467/0.06347, allocations: 1.722 MB / 281.7 MB, free: 4.379 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008641/0.06433, allocations: 476 kB / 282.2 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001656/0.06599, allocations: 0.6714 MB / 282.9 MB, free: 3.242 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001292/0.06728, allocations: 1.176 MB / 284 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002339/0.06962, allocations: 1.372 MB / 285.4 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009064/0.07868, allocations: 6.314 MB / 291.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.07869, allocations: 0 / 291.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.169e-06/0.0787, allocations: 4 kB / 291.7 MB, free: 10.35 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001982/0.07889, allocations: 4 kB / 291.7 MB, free: 10.35 MB / 282.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.01222/0.09111, allocations: 4.205 MB / 295.9 MB, free: 6.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.09116, allocations: 12.03 kB / 295.9 MB, free: 6.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003549/0.09471, allocations: 0.9783 MB / 296.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005179/0.09989, allocations: 2.124 MB / 299 MB, free: 2.922 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002559/0.1001, allocations: 234.7 kB / 299.3 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006998/0.1008, allocations: 320.3 kB / 299.6 MB, free: 2.379 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1171/0.2179, allocations: 4.115 MB / 303.7 MB, free: 54.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.838e-05/0.218, allocations: 10.27 kB / 303.7 MB, free: 54.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002778/0.2183, allocations: 126.7 kB / 303.8 MB, free: 54.13 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.2185, allocations: 143.9 kB / 304 MB, free: 54.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006088/0.2245, allocations: 3.368 MB / 307.3 MB, free: 52.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.2411, allocations: 11.53 MB / 318.9 MB, free: 45.74 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00278/0.2439, allocations: 1.673 MB / 320.5 MB, free: 44.89 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.2452, allocations: 0.9048 MB / 321.5 MB, free: 44.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.2484, allocations: 2.112 MB / 323.6 MB, free: 42.32 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.2484, allocations: 51.48 kB / 323.6 MB, free: 42.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=108): time 2.905e-06/0.2484, allocations: 3.719 kB / 323.6 MB, free: 42.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=142): time 0.009595/0.258, allocations: 5.838 MB / 329.5 MB, free: 36.56 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.2581, allocations: 68.72 kB / 329.5 MB, free: 36.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.26, allocations: 1.73 MB / 331.3 MB, free: 34.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.2601, allocations: 49.7 kB / 331.3 MB, free: 34.72 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006286/0.2607, allocations: 1.562 MB / 332.9 MB, free: 33.26 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.261, allocations: 0.5066 MB / 333.4 MB, free: 32.76 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004098/0.2614, allocations: 331.4 kB / 333.7 MB, free: 32.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.28e-05/0.2614, allocations: 301.1 kB / 334 MB, free: 32.13 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009393/0.2624, allocations: 0.7691 MB / 334.8 MB, free: 31.36 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.2635, allocations: 1.396 MB / 336.2 MB, free: 29.69 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00226/0.2658, allocations: 2.317 MB / 338.5 MB, free: 27.13 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.2658, allocations: 11.88 kB / 338.5 MB, free: 27.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003241/0.2691, allocations: 2.549 MB / 341 MB, free: 24.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.2691, allocations: 12 kB / 341 MB, free: 24.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.2691, allocations: 23.28 kB / 341.1 MB, free: 24.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003268/0.2694, allocations: 130.4 kB / 341.2 MB, free: 24.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.2711, allocations: 487.3 kB / 341.7 MB, free: 23.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006992/0.2718, allocations: 1.285 MB / 343 MB, free: 22.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.2731, allocations: 119.8 kB / 343.1 MB, free: 22.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.2732, allocations: 80.16 kB / 343.1 MB, free: 22.32 MB / 282.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.001293/0.2745, allocations: 0.9889 MB / 344.1 MB, free: 21.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003527/0.2748, allocations: 238.8 kB / 344.4 MB, free: 21.09 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/0.2775, allocations: 1.944 MB / 346.3 MB, free: 19.12 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.2775, allocations: 19.94 kB / 346.3 MB, free: 19.1 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2775, allocations: 0 / 346.3 MB, free: 19.1 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.2776, allocations: 7.969 kB / 346.3 MB, free: 19.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005701/0.2833, allocations: 4.217 MB / 350.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.2833, allocations: 0 / 350.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.2846, allocations: 311.6 kB / 350.9 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.2848, allocations: 102.7 kB / 351 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.796e-05/0.2849, allocations: 35.98 kB / 351 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005946/0.2855, allocations: 1.244 MB / 352.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2855, allocations: 6.625 kB / 352.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/0.2891, allocations: 3.118 MB / 355.4 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007618/0.2898, allocations: 378.5 kB / 355.7 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/0.29, allocations: 24 kB / 355.8 MB, free: 9.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008884/0.2909, allocations: 83.91 kB / 355.8 MB, free: 9.395 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.2911, allocations: 89.12 kB / 355.9 MB, free: 9.305 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-05/0.2912, allocations: 40 kB / 356 MB, free: 9.266 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001322/0.2925, allocations: 1.152 MB / 357.1 MB, free: 8.121 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2925, allocations: 0 / 357.1 MB, free: 8.121 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001479/0.294, allocations: 0.5273 MB / 357.6 MB, free: 7.594 MB / 282.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.0002874/0.2943, allocations: 170.8 kB / 357.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002608/0.2969, allocations: 1.972 MB / 359.8 MB, free: 5.434 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2969, allocations: 4.438 kB / 359.8 MB, free: 5.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.298, allocations: 0.9525 MB / 360.7 MB, free: 4.457 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.3, allocations: 485.1 kB / 361.2 MB, free: 3.996 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008668/0.3087, allocations: 5.669 MB / 366.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/0.311, allocations: 1.713 MB / 368.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001777/0.3128, allocations: 0.4887 MB / 369.1 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004819/0.3132, allocations: 144.5 kB / 369.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of SimCode: time 2.535e-06/0.3132, allocations: 0 / 369.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of Templates: time 0.07285/0.3861, allocations: 24.38 MB / 393.6 MB, free: 3.496 MB / 314.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: 5.432489120983519]