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.001484/0.001484, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 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.001687/0.001687, allocations: 204.7 kB / 25.23 MB, free: 3.551 MB / 14.72 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.546/1.546, allocations: 207.6 MB / 236 MB, free: 9.996 MB / 190.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 51.92 kB / 348.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2759, allocations: 49.16 MB / 397.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01598/0.2918, allocations: 15.25 MB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.3049, allocations: 5.151 MB / 418 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003994/0.3089, allocations: 107.4 kB / 418.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004278/0.3132, allocations: 1.126 MB / 419.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005777/0.319, allocations: 1.269 MB / 420.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003266/0.3222, allocations: 0.9298 MB / 421.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006441/0.3287, allocations: 3.64 MB / 425.1 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003375/0.332, allocations: 1.871 MB / 427 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003838/0.3359, allocations: 1.759 MB / 428.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004628/0.3405, allocations: 2.084 MB / 430.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001578/0.3421, allocations: 480 kB / 431.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003186/0.3453, allocations: 0.6911 MB / 432 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002034/0.3473, allocations: 1.153 MB / 433.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004261/0.3516, allocations: 2.042 MB / 435.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009927/0.3615, allocations: 6.273 MB / 441.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3615, allocations: 0 / 441.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3615, allocations: 0 / 441.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001982/0.3617, allocations: 0 / 441.4 MB, free: 7.387 MB / 350.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.01215/0.3738, allocations: 4.252 MB / 445.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3739, allocations: 12.03 kB / 445.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00292/0.3768, allocations: 0.6388 MB / 446.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004902/0.3817, allocations: 2.07 MB / 448.4 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002568/0.382, allocations: 238.7 kB / 448.6 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008304/0.3828, allocations: 324 kB / 449 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007901/0.3907, allocations: 4.043 MB / 453 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.729e-05/0.3908, allocations: 7.938 kB / 453 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002891/0.3911, allocations: 124 kB / 453.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.3912, allocations: 150.2 kB / 453.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006992/0.3982, allocations: 3.378 MB / 456.7 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02363/0.4219, allocations: 12.83 MB / 469.5 MB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003426/0.4253, allocations: 1.703 MB / 471.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.4269, allocations: 0.8986 MB / 472.1 MB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005186/0.4321, allocations: 2.396 MB / 474.5 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.4321, allocations: 43.5 kB / 474.5 MB, free: 5.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.356e-06/0.4321, allocations: 0 / 474.5 MB, free: 5.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01265/0.4448, allocations: 5.82 MB / 480.3 MB, free: 15.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/0.4449, allocations: 68.72 kB / 480.4 MB, free: 15.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003156/0.448, allocations: 1.893 MB / 482.3 MB, free: 13.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002069/0.4482, allocations: 45.7 kB / 482.3 MB, free: 13.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/0.4495, allocations: 1.548 MB / 483.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005733/0.4501, allocations: 0.5036 MB / 484.4 MB, free: 11.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000545/0.4507, allocations: 335.4 kB / 484.7 MB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.4508, allocations: 301.1 kB / 485 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.4521, allocations: 0.7691 MB / 485.8 MB, free: 10.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.4539, allocations: 1.379 MB / 487.2 MB, free: 8.652 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00326/0.4572, allocations: 2.312 MB / 489.5 MB, free: 6.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/0.4572, allocations: 7.938 kB / 489.5 MB, free: 6.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004451/0.4617, allocations: 2.483 MB / 492 MB, free: 3.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.766e-05/0.4617, allocations: 20.03 kB / 492 MB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.163e-05/0.4617, allocations: 16 kB / 492 MB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000388/0.4621, allocations: 118.5 kB / 492.1 MB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.464, allocations: 499.2 kB / 492.6 MB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.4652, allocations: 1.306 MB / 493.9 MB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.4668, allocations: 111.8 kB / 494 MB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.467, allocations: 83.98 kB / 494.1 MB, free: 1.301 MB / 398.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.001878/0.4688, allocations: 0.9852 MB / 495.1 MB, free: 312 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004731/0.4693, allocations: 210.6 kB / 495.3 MB, free: 100 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.4729, allocations: 1.969 MB / 497.3 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/0.4729, allocations: 12 kB / 497.3 MB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4729, allocations: 3.938 kB / 497.3 MB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.4729, allocations: 11.97 kB / 497.3 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009088/0.482, allocations: 4.951 MB / 0.4905 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.482, allocations: 16.17 kB / 0.4905 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/0.4834, allocations: 311.6 kB / 0.4908 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003167/0.4837, allocations: 90.53 kB / 0.4909 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.894e-05/0.4838, allocations: 31.98 kB / 0.4909 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/0.4849, allocations: 1.279 MB / 0.4922 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.4849, allocations: 7.938 kB / 0.4922 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/0.4899, allocations: 3.087 MB / 0.4952 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/0.4912, allocations: 382.5 kB / 0.4955 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000312/0.4915, allocations: 28 kB / 0.4956 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009681/0.4924, allocations: 83.97 kB / 0.4956 GB, free: 3.551 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.4926, allocations: 97 kB / 0.4957 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.215e-05/0.4927, allocations: 43.94 kB / 0.4958 GB, free: 3.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002262/0.495, allocations: 1.281 MB / 0.497 GB, free: 2.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.495, allocations: 0 / 0.497 GB, free: 2.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001906/0.4969, allocations: 0.5312 MB / 0.4976 GB, free: 1.578 MB / 414.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.0003693/0.4973, allocations: 163 kB / 0.4977 GB, free: 1.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003884/0.5011, allocations: 1.975 MB / 0.4996 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.5011, allocations: 0 / 0.4996 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.5029, allocations: 0.9653 MB / 0.5006 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/0.5056, allocations: 0.5136 MB / 0.5011 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.5171, allocations: 5.727 MB / 0.5067 GB, free: 8.121 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/0.5195, allocations: 2.212 MB / 0.5088 GB, free: 5.871 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008149/0.5203, allocations: 171.4 kB / 0.509 GB, free: 5.703 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5203, allocations: 0 / 0.509 GB, free: 5.703 MB / 430.1 MB Notification: Performance of Templates: time 0.291/0.8113, allocations: 86.45 MB / 0.5934 GB, free: 134.2 MB / 478.1 MB " [Timeout remaining time 659] 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/jenkins1/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/jenkins1/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: 13.280049268854782]