Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001281/0.001281, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001148, allocations: 51.11 kB / 301.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 49.44 MB / 350.8 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2182/0.326, allocations: 39.44 MB / 390.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02524/0.3513, allocations: 10.42 MB / 400.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01048/0.3618, allocations: 308.4 kB / 400.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02151/0.3834, allocations: 8.508 MB / 409.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01431/0.3977, allocations: 3.406 MB / 412.8 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007921/0.4057, allocations: 2.325 MB / 415.1 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01688/0.4226, allocations: 12.77 MB / 427.9 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04062/0.4632, allocations: 25.4 MB / 453.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01253/0.4758, allocations: 6.779 MB / 460.1 MB, free: 8.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01237/0.4882, allocations: 7.74 MB / 467.8 MB, free: 492 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005629/0.4939, allocations: 1.949 MB / 469.8 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007535/0.5015, allocations: 2.351 MB / 472.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006211/0.5077, allocations: 3.959 MB / 476.1 MB, free: 8.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01451/0.5223, allocations: 7.56 MB / 483.7 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03059/0.5529, allocations: 25.7 MB / 0.4974 GB, free: 6.848 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.553, allocations: 4 kB / 0.4974 GB, free: 6.844 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.553, allocations: 0 / 0.4974 GB, free: 6.844 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007731/0.5538, allocations: 0 / 0.4974 GB, free: 6.844 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04744/0.6012, allocations: 15.03 MB / 0.5121 GB, free: 7.699 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.6013, allocations: 8.031 kB / 0.5121 GB, free: 7.691 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03459/0.6359, allocations: 6.127 MB / 0.5181 GB, free: 1.543 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3366/0.9725, allocations: 7.807 MB / 0.5257 GB, free: 115.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/0.9736, allocations: 0.9121 MB / 0.5266 GB, free: 115.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005191/0.9788, allocations: 1.199 MB / 0.5278 GB, free: 114.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05125/1.03, allocations: 18.65 MB / 0.546 GB, free: 107.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007845/1.031, allocations: 27.16 kB / 0.546 GB, free: 107.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00459/1.036, allocations: 0.4949 MB / 0.5465 GB, free: 107 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006788/1.036, allocations: 0.6377 MB / 0.5471 GB, free: 107 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/1.071, allocations: 16.75 MB / 0.5635 GB, free: 94.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09798/1.169, allocations: 58.85 MB / 0.621 GB, free: 34.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02158/1.191, allocations: 32.89 MB / 0.6531 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007288/1.198, allocations: 3.73 MB / 0.6567 GB, free: 9.836 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02063/1.219, allocations: 8.664 MB / 0.6652 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.163e-05/1.219, allocations: 69.31 kB / 0.6652 GB, free: 1.094 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.973e-06/1.219, allocations: 0 / 0.6652 GB, free: 1.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.04425/1.263, allocations: 17.55 MB / 0.6824 GB, free: 15.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/1.263, allocations: 90.47 kB / 0.6825 GB, free: 15.29 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/1.273, allocations: 5.02 MB / 0.6874 GB, free: 10.28 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008692/1.274, allocations: 85.7 kB / 0.6875 GB, free: 10.19 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004259/1.279, allocations: 5.443 MB / 0.6928 GB, free: 4.711 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002152/1.281, allocations: 1.354 MB / 0.6941 GB, free: 3.367 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003975/1.285, allocations: 1.314 MB / 0.6954 GB, free: 2.043 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/1.285, allocations: 301.1 kB / 0.6957 GB, free: 1.746 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2123/1.497, allocations: 2.91 MB / 0.6985 GB, free: 148.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007458/1.505, allocations: 5.874 MB / 0.7042 GB, free: 144.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/1.516, allocations: 9.445 MB / 0.7135 GB, free: 137.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000193/1.516, allocations: 29.22 kB / 0.7135 GB, free: 137.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01979/1.536, allocations: 9.848 MB / 0.7231 GB, free: 134.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/1.536, allocations: 53.22 kB / 0.7232 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001825/1.536, allocations: 98.81 kB / 0.7233 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002347/1.538, allocations: 0.945 MB / 0.7242 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005828/1.544, allocations: 1.578 MB / 0.7257 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009912/1.554, allocations: 10.2 MB / 0.7357 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005683/1.56, allocations: 405.3 kB / 0.7361 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/1.561, allocations: 354.1 kB / 0.7364 GB, free: 126.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007534/1.569, allocations: 4.244 MB / 0.7405 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001463/1.57, allocations: 0.5085 MB / 0.741 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/1.58, allocations: 6.493 MB / 0.7474 GB, free: 121.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.76e-05/1.58, allocations: 39.19 kB / 0.7474 GB, free: 121.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/1.58, allocations: 13.66 kB / 0.7474 GB, free: 121.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.844e-05/1.581, allocations: 19.27 kB / 0.7475 GB, free: 121.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/1.606, allocations: 15.71 MB / 0.7628 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/1.606, allocations: 4 kB / 0.7628 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.609, allocations: 0.7427 MB / 0.7635 GB, free: 111.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/1.611, allocations: 0.8002 MB / 0.7643 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004414/1.611, allocations: 87.02 kB / 0.7644 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008424/1.62, allocations: 9.355 MB / 0.7735 GB, free: 101.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.62, allocations: 7.984 kB / 0.7735 GB, free: 101.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/1.632, allocations: 9.488 MB / 0.7828 GB, free: 92.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002989/1.635, allocations: 1.056 MB / 0.7838 GB, free: 90.97 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009395/1.636, allocations: 72 kB / 0.7839 GB, free: 90.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002407/1.639, allocations: 219.8 kB / 0.7841 GB, free: 90.69 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005515/1.639, allocations: 266.7 kB / 0.7844 GB, free: 90.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002289/1.639, allocations: 116 kB / 0.7845 GB, free: 90.31 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005154/1.645, allocations: 3.35 MB / 0.7878 GB, free: 86.98 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.645, allocations: 0 / 0.7878 GB, free: 86.98 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0072/1.652, allocations: 1.875 MB / 0.7896 GB, free: 85.11 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.0008151/1.653, allocations: 269 kB / 0.7898 GB, free: 84.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02552/1.678, allocations: 13.11 MB / 0.8026 GB, free: 71.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/1.678, allocations: 64 / 0.8026 GB, free: 71.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005492/1.684, allocations: 3.553 MB / 0.8061 GB, free: 68.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006853/1.691, allocations: 1.29 MB / 0.8074 GB, free: 66.81 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03331/1.724, allocations: 19.63 MB / 0.8265 GB, free: 47.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007625/1.732, allocations: 7.104 MB / 0.8335 GB, free: 39.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001934/1.734, allocations: 459.3 kB / 0.8339 GB, free: 39.53 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/1.734, allocations: 0 / 0.8339 GB, free: 39.53 MB / 478.1 MB Notification: Performance of Templates: time 1.032/2.766, allocations: 460.6 MB / 1.284 GB, free: 165.1 MB / 0.5138 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches