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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 114.4 kB / 17.74 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001006, allocations: 187.1 kB / 18.66 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 47.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2872/0.3958, allocations: 15.11 MB / 390.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.4091, allocations: 5.117 MB / 395.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005373/0.4146, allocations: 87.94 kB / 395.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004654/0.4193, allocations: 1.118 MB / 396.6 MB, free: 324 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006604/0.4259, allocations: 1.296 MB / 397.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002952/0.4289, allocations: 0.8996 MB / 398.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007623/0.4366, allocations: 3.629 MB / 402.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006143/0.4427, allocations: 3.265 MB / 405.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004726/0.4475, allocations: 1.724 MB / 407.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006141/0.4537, allocations: 2.05 MB / 409.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002034/0.4558, allocations: 479 kB / 409.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00375/0.4595, allocations: 0.6829 MB / 410.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001602/0.4612, allocations: 1.147 MB / 411.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003632/0.4648, allocations: 2.038 MB / 413.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01176/0.4766, allocations: 6.242 MB / 420 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.4766, allocations: 0 / 420 MB, free: 2.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4766, allocations: 5.312 kB / 420 MB, free: 2.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002534/0.4769, allocations: 0 / 420 MB, free: 2.582 MB / 334.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.01269/0.4896, allocations: 4.241 MB / 424.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.13e-05/0.4897, allocations: 12.03 kB / 424.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003292/0.493, allocations: 0.6173 MB / 424.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005641/0.4987, allocations: 2.128 MB / 427 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/0.499, allocations: 234.7 kB / 427.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/0.5003, allocations: 316.2 kB / 427.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009113/0.5094, allocations: 4.05 MB / 431.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.753e-05/0.5095, allocations: 7.984 kB / 431.6 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003143/0.5099, allocations: 124 kB / 431.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.51, allocations: 154.2 kB / 431.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006822/0.5169, allocations: 3.37 MB / 435.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02868/0.5456, allocations: 13.17 MB / 448.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005015/0.5506, allocations: 3.963 MB / 452.4 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/0.5527, allocations: 0.9877 MB / 453.4 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006549/0.5593, allocations: 2.649 MB / 456 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.5594, allocations: 47.5 kB / 456.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 4.85e-06/0.5594, allocations: 0 / 456.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01319/0.5726, allocations: 6.001 MB / 462.1 MB, free: 7.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.5728, allocations: 68.72 kB / 462.2 MB, free: 7.242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003112/0.5759, allocations: 1.889 MB / 464 MB, free: 5.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.5761, allocations: 53.69 kB / 464.1 MB, free: 5.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.5774, allocations: 1.497 MB / 465.6 MB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004777/0.5779, allocations: 489 kB / 466.1 MB, free: 3.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005426/0.5785, allocations: 331.2 kB / 466.4 MB, free: 2.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.5786, allocations: 309.1 kB / 466.7 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.5798, allocations: 0.7652 MB / 467.5 MB, free: 1.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/0.5815, allocations: 1.371 MB / 468.8 MB, free: 212 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/0.5848, allocations: 2.316 MB / 471.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.569e-05/0.5849, allocations: 11.94 kB / 471.2 MB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004787/0.5897, allocations: 2.474 MB / 473.6 MB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.5897, allocations: 12 kB / 473.7 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-05/0.5898, allocations: 27.92 kB / 473.7 MB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004024/0.5902, allocations: 122.4 kB / 473.8 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/0.592, allocations: 499.3 kB / 474.3 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.5933, allocations: 1.402 MB / 475.7 MB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.595, allocations: 115.8 kB / 475.8 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.5951, allocations: 80 kB / 475.9 MB, free: 8.73 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.002121/0.5973, allocations: 0.9967 MB / 476.9 MB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005295/0.5978, allocations: 201.5 kB / 477.1 MB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003323/0.6011, allocations: 1.961 MB / 479 MB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.6012, allocations: 16 kB / 479 MB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.6012, allocations: 0 / 479 MB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.6012, allocations: 7.969 kB / 479.1 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008857/0.61, allocations: 4.987 MB / 484 MB, free: 432 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.6101, allocations: 0 / 484 MB, free: 432 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/0.6115, allocations: 327.5 kB / 484.4 MB, free: 104 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000299/0.6119, allocations: 86.53 kB / 484.4 MB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.612, allocations: 40.09 kB / 484.5 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.613, allocations: 1.367 MB / 485.9 MB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.6131, allocations: 8 kB / 485.9 MB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00497/0.618, allocations: 3.086 MB / 488.9 MB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/0.6196, allocations: 450.5 kB / 489.4 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/0.6199, allocations: 28 kB / 489.4 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009899/0.6209, allocations: 83.95 kB / 489.5 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.6211, allocations: 85.14 kB / 489.6 MB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.444e-05/0.6212, allocations: 43.92 kB / 489.6 MB, free: 10.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002111/0.6233, allocations: 1.285 MB / 490.9 MB, free: 9.301 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6233, allocations: 0 / 490.9 MB, free: 9.301 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002206/0.6255, allocations: 0.5351 MB / 491.4 MB, free: 8.766 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.0004012/0.6259, allocations: 162.8 kB / 491.6 MB, free: 8.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003875/0.6298, allocations: 2.22 MB / 493.8 MB, free: 6.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.6299, allocations: 4.938 kB / 493.8 MB, free: 6.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.6315, allocations: 1.178 MB / 495 MB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.6341, allocations: 0.524 MB / 495.5 MB, free: 4.562 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.6444, allocations: 5.562 MB / 0.4893 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.6462, allocations: 2.259 MB / 0.4916 GB, free: 12.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001671/0.6479, allocations: 0.5053 MB / 0.492 GB, free: 12.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004303/0.6483, allocations: 155.4 kB / 0.4922 GB, free: 11.99 MB / 430.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6483, allocations: 0 / 0.4922 GB, free: 11.99 MB / 430.1 MB Notification: Performance of Templates: time 0.05112/0.6995, allocations: 26.57 MB / 0.5181 GB, free: 1.371 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (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) 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) Reference file matches