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.001186/0.001186, allocations: 104.1 kB / 17.58 MB, free: 5.445 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.001135/0.001135, allocations: 191.9 kB / 18.51 MB, free: 4.52 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.327/1.327, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.00115/0.00115, allocations: 59.86 kB / 280.7 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1019, allocations: 46.63 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01793/0.1199, allocations: 15.12 MB / 342.4 MB, free: 5.273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.1311, allocations: 5.113 MB / 347.5 MB, free: 148 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002678/0.1339, allocations: 87.62 kB / 347.6 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002963/0.1369, allocations: 1.052 MB / 348.7 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004117/0.1411, allocations: 1.262 MB / 349.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.1433, allocations: 0.904 MB / 350.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004463/0.1477, allocations: 3.608 MB / 354.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004031/0.1518, allocations: 3.25 MB / 357.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003047/0.1549, allocations: 1.709 MB / 359.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002987/0.1579, allocations: 2.039 MB / 361.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007779/0.1587, allocations: 480 kB / 361.9 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.1606, allocations: 0.6872 MB / 362.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00137/0.162, allocations: 1.145 MB / 363.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00246/0.1644, allocations: 2.038 MB / 365.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006755/0.1712, allocations: 6.192 MB / 372 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.1712, allocations: 3.984 kB / 372 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1713, allocations: 3.938 kB / 372 MB, free: 7.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001714/0.1714, allocations: 0 / 372 MB, free: 7.551 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.01198/0.1834, allocations: 4.234 MB / 376.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.1835, allocations: 12.03 kB / 376.2 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003/0.1865, allocations: 0.6211 MB / 376.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004232/0.1908, allocations: 2.121 MB / 379 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.191, allocations: 246.8 kB / 379.2 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2229/0.414, allocations: 309.7 kB / 379.5 MB, free: 50.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.4243, allocations: 4.037 MB / 383.5 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.523e-05/0.4245, allocations: 9.078 kB / 383.5 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003046/0.4248, allocations: 128.6 kB / 383.7 MB, free: 48.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001893/0.425, allocations: 144.5 kB / 383.8 MB, free: 48.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006877/0.4319, allocations: 3.375 MB / 387.2 MB, free: 47.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02072/0.4526, allocations: 13.33 MB / 400.5 MB, free: 38.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003259/0.4559, allocations: 3.967 MB / 404.5 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.4573, allocations: 1.001 MB / 405.5 MB, free: 34.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003965/0.4613, allocations: 2.667 MB / 408.2 MB, free: 32.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.4613, allocations: 47.48 kB / 408.2 MB, free: 32.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.925e-06/0.4613, allocations: 0 / 408.2 MB, free: 32.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009528/0.4709, allocations: 5.999 MB / 414.2 MB, free: 26.65 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.4709, allocations: 72.66 kB / 414.3 MB, free: 26.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/0.4731, allocations: 1.89 MB / 416.2 MB, free: 24.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.938e-05/0.4732, allocations: 49.7 kB / 416.2 MB, free: 24.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006057/0.4738, allocations: 1.497 MB / 417.7 MB, free: 23.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.474, allocations: 491.9 kB / 418.2 MB, free: 22.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003983/0.4744, allocations: 331.2 kB / 418.5 MB, free: 22.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.639e-05/0.4745, allocations: 309.6 kB / 418.8 MB, free: 21.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009039/0.4754, allocations: 0.7691 MB / 419.6 MB, free: 21.19 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.4765, allocations: 1.375 MB / 421 MB, free: 19.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002244/0.4788, allocations: 2.31 MB / 423.3 MB, free: 16.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.4788, allocations: 8 kB / 423.3 MB, free: 16.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003503/0.4823, allocations: 2.471 MB / 425.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.4824, allocations: 15.94 kB / 425.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/0.4824, allocations: 20 kB / 425.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003619/0.4828, allocations: 118.5 kB / 425.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.4844, allocations: 495.3 kB / 426.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008237/0.4852, allocations: 1.405 MB / 427.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.4866, allocations: 115.8 kB / 427.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.96e-05/0.4867, allocations: 88.03 kB / 428 MB, free: 12.09 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.001488/0.4882, allocations: 0.9888 MB / 429 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/0.4885, allocations: 204.1 kB / 429.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.491, allocations: 1.961 MB / 431.1 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4911, allocations: 16 kB / 431.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.4911, allocations: 4 kB / 431.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.4911, allocations: 7.969 kB / 431.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00672/0.4978, allocations: 4.982 MB / 436.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.4978, allocations: 4 kB / 436.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.4991, allocations: 323.8 kB / 436.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/0.4993, allocations: 94.52 kB / 436.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.619e-05/0.4994, allocations: 39.98 kB / 436.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007167/0.5002, allocations: 1.375 MB / 438 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.5002, allocations: 0 / 438 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004024/0.5042, allocations: 3.088 MB / 441.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009067/0.5051, allocations: 450.5 kB / 441.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004264/0.5056, allocations: 32.06 kB / 441.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.5066, allocations: 75.91 kB / 441.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.5068, allocations: 93.12 kB / 441.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.442e-05/0.5069, allocations: 39.98 kB / 441.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002264/0.5092, allocations: 1.281 MB / 443 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5092, allocations: 0 / 443 MB, free: 12.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002022/0.5112, allocations: 0.5362 MB / 443.5 MB, free: 12.17 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.0004306/0.5117, allocations: 168.8 kB / 443.7 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00575/0.5174, allocations: 2.829 MB / 446.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.5175, allocations: 0 / 446.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001596/0.5191, allocations: 1.181 MB / 447.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.5217, allocations: 0.5096 MB / 448.2 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.5328, allocations: 5.642 MB / 453.9 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/0.536, allocations: 2.259 MB / 456.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002372/0.5384, allocations: 0.517 MB / 456.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005785/0.539, allocations: 151.4 kB / 456.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of SimCode: time 1.883e-06/0.539, allocations: 0 / 456.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Templates: time 0.05256/0.5916, allocations: 26.04 MB / 482.8 MB, free: 4.707 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 -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