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.001204/0.001204, allocations: 105.4 kB / 18.35 MB, free: 4.641 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.001213/0.001213, allocations: 184.1 kB / 19.29 MB, free: 3.715 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.277/1.277, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001168/0.001168, allocations: 55.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07731/0.07849, allocations: 46.61 MB / 328.7 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01546/0.09398, allocations: 15.14 MB / 343.9 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00903/0.103, allocations: 5.101 MB / 349 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.1049, allocations: 91.62 kB / 349.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.1075, allocations: 1.056 MB / 350.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003396/0.1109, allocations: 1.27 MB / 351.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00187/0.1128, allocations: 0.8885 MB / 352.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00391/0.1167, allocations: 3.631 MB / 355.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003435/0.1202, allocations: 3.266 MB / 359.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002309/0.1225, allocations: 1.709 MB / 360.9 MB, free: 3.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/0.1249, allocations: 2.043 MB / 362.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005646/0.1255, allocations: 484 kB / 363.4 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.1267, allocations: 0.6833 MB / 364.1 MB, free: 240 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009796/0.1277, allocations: 1.138 MB / 365.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001968/0.1297, allocations: 2.038 MB / 367.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.135, allocations: 6.254 MB / 373.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.135, allocations: 4 kB / 373.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.135, allocations: 0 / 373.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.977e-05/0.1351, allocations: 0 / 373.5 MB, free: 6.77 MB / 318.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.00846/0.1436, allocations: 4.226 MB / 377.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1437, allocations: 16.03 kB / 377.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002684/0.1463, allocations: 0.6133 MB / 378.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1364/0.2827, allocations: 2.134 MB / 380.5 MB, free: 49.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/0.283, allocations: 236.4 kB / 380.7 MB, free: 49.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009076/0.2839, allocations: 314.6 kB / 381 MB, free: 49.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006728/0.2907, allocations: 4.043 MB / 385.1 MB, free: 48.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.846e-05/0.2908, allocations: 8.609 kB / 385.1 MB, free: 48.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.291, allocations: 126.1 kB / 385.2 MB, free: 48.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/0.2912, allocations: 148.8 kB / 385.4 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005253/0.2964, allocations: 3.371 MB / 388.7 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01553/0.312, allocations: 13.17 MB / 401.9 MB, free: 37.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003082/0.3151, allocations: 3.961 MB / 405.9 MB, free: 34.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.3164, allocations: 1.001 MB / 406.9 MB, free: 33.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00374/0.3202, allocations: 2.655 MB / 409.5 MB, free: 31.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.3202, allocations: 49.73 kB / 409.6 MB, free: 31.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.344e-06/0.3202, allocations: 1 kB / 409.6 MB, free: 31.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009043/0.3293, allocations: 6.001 MB / 415.6 MB, free: 25.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.3293, allocations: 72.72 kB / 415.6 MB, free: 25.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.3313, allocations: 1.89 MB / 417.5 MB, free: 23.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.147e-05/0.3314, allocations: 45.7 kB / 417.6 MB, free: 23.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006154/0.3321, allocations: 1.508 MB / 419.1 MB, free: 22.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.3323, allocations: 484.5 kB / 419.5 MB, free: 21.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004006/0.3327, allocations: 335.2 kB / 419.9 MB, free: 21.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.333e-05/0.3327, allocations: 301.1 kB / 420.2 MB, free: 21.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009617/0.3337, allocations: 0.7652 MB / 420.9 MB, free: 20.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.3349, allocations: 1.383 MB / 422.3 MB, free: 18.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.3371, allocations: 2.31 MB / 424.6 MB, free: 16.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/0.3371, allocations: 4 kB / 424.6 MB, free: 16.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003367/0.3405, allocations: 2.478 MB / 427.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.3405, allocations: 16 kB / 427.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.3406, allocations: 21.41 kB / 427.1 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003384/0.3409, allocations: 118.5 kB / 427.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.3426, allocations: 495.2 kB / 427.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007712/0.3434, allocations: 1.402 MB / 429.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.3447, allocations: 111.8 kB / 429.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.3448, allocations: 83.98 kB / 429.3 MB, free: 11.19 MB / 318.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.001564/0.3464, allocations: 0.9929 MB / 430.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003188/0.3467, allocations: 201.5 kB / 430.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.3494, allocations: 1.965 MB / 432.5 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3494, allocations: 12 kB / 432.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3494, allocations: 0 / 432.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3495, allocations: 7.969 kB / 432.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006405/0.3559, allocations: 4.984 MB / 437.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3559, allocations: 8.031 kB / 437.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.3572, allocations: 319.5 kB / 437.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000277/0.3574, allocations: 98.45 kB / 437.9 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-05/0.3575, allocations: 32 kB / 437.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006576/0.3582, allocations: 1.375 MB / 439.3 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3582, allocations: 0 / 439.3 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004247/0.3625, allocations: 3.086 MB / 442.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.3635, allocations: 454.4 kB / 442.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.3638, allocations: 28 kB / 442.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009515/0.3647, allocations: 91.89 kB / 443 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.3649, allocations: 85.19 kB / 443.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.579e-05/0.365, allocations: 43.94 kB / 443.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.3669, allocations: 1.285 MB / 444.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3669, allocations: 0 / 444.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001671/0.3686, allocations: 0.5273 MB / 444.9 MB, free: 11.26 MB / 334.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.0003334/0.3689, allocations: 164.4 kB / 445.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003397/0.3724, allocations: 2.224 MB / 447.3 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.3724, allocations: 0 / 447.3 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.3743, allocations: 1.175 MB / 448.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.3776, allocations: 0.5194 MB / 449 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.3882, allocations: 5.567 MB / 454.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.3903, allocations: 2.259 MB / 456.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001714/0.392, allocations: 0.5131 MB / 457.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004806/0.3925, allocations: 147.4 kB / 457.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3925, allocations: 0 / 457.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Templates: time 0.05594/0.4485, allocations: 26 MB / 483.5 MB, free: 4.52 MB / 366.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 -s gbode -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/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) Reference file matches