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.00106/0.001061, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.00109/0.00109, allocations: 192 kB / 18 MB, free: 5.055 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.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008896/0.0008897, allocations: 43.94 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2302, allocations: 49.43 MB / 400.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03814/0.2684, allocations: 39.44 MB / 440.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01977/0.2882, allocations: 10.42 MB / 450.6 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006619/0.2949, allocations: 303 kB / 450.9 MB, free: 6.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01911/0.314, allocations: 8.507 MB / 459.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.3243, allocations: 3.402 MB / 462.8 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00631/0.3307, allocations: 2.339 MB / 465.2 MB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01453/0.3452, allocations: 12.89 MB / 478.1 MB, free: 11.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03496/0.3802, allocations: 25.3 MB / 0.4916 GB, free: 1.984 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009847/0.3901, allocations: 6.791 MB / 0.4982 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01115/0.4013, allocations: 7.724 MB / 0.5057 GB, free: 3.426 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004349/0.4057, allocations: 1.949 MB / 0.5076 GB, free: 1.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005994/0.4117, allocations: 2.351 MB / 0.5099 GB, free: 15.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004853/0.4166, allocations: 3.955 MB / 0.5138 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01027/0.4268, allocations: 7.548 MB / 0.5212 GB, free: 3.582 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.42/0.8468, allocations: 25.92 MB / 0.5465 GB, free: 56.08 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.8469, allocations: 0 / 0.5465 GB, free: 56.08 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.8469, allocations: 0 / 0.5465 GB, free: 56.08 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006078/0.8475, allocations: 0 / 0.5465 GB, free: 56.08 MB / 462.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.03891/0.8864, allocations: 15.29 MB / 0.5614 GB, free: 51.66 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.8865, allocations: 13.38 kB / 0.5614 GB, free: 51.66 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03224/0.9187, allocations: 6.21 MB / 0.5675 GB, free: 50.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01412/0.9329, allocations: 8.078 MB / 0.5754 GB, free: 48.05 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005479/0.9335, allocations: 0.9003 MB / 0.5763 GB, free: 48.02 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004159/0.9376, allocations: 1.199 MB / 0.5774 GB, free: 47.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04237/0.98, allocations: 18.65 MB / 0.5957 GB, free: 32.41 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003557/0.9804, allocations: 19.91 kB / 0.5957 GB, free: 32.39 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002197/0.9826, allocations: 0.497 MB / 0.5962 GB, free: 31.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004774/0.9831, allocations: 0.6421 MB / 0.5968 GB, free: 31.26 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03043/1.014, allocations: 16.77 MB / 0.6132 GB, free: 14.49 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1032/1.117, allocations: 58.29 MB / 0.6701 GB, free: 3.863 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02542/1.142, allocations: 32.88 MB / 0.7022 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005626/1.148, allocations: 3.711 MB / 0.7058 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/1.161, allocations: 8.647 MB / 0.7143 GB, free: 2.797 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/1.162, allocations: 69.31 kB / 0.7143 GB, free: 2.719 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.12e-06/1.162, allocations: 0 / 0.7143 GB, free: 2.719 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03346/1.195, allocations: 17.71 MB / 0.7316 GB, free: 0.9258 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/1.195, allocations: 94.47 kB / 0.7317 GB, free: 0.8203 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006733/1.202, allocations: 5.021 MB / 0.7366 GB, free: 11.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0004109/1.202, allocations: 89.7 kB / 0.7367 GB, free: 11.71 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.00335/1.206, allocations: 5.632 MB / 0.7422 GB, free: 6.066 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001299/1.207, allocations: 1.425 MB / 0.7436 GB, free: 4.66 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/1.209, allocations: 1.323 MB / 0.7449 GB, free: 3.328 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.613e-05/1.209, allocations: 301.1 kB / 0.7452 GB, free: 3.031 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004338/1.213, allocations: 2.906 MB / 0.748 GB, free: 124 kB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2308/1.444, allocations: 5.879 MB / 0.7538 GB, free: 220.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009018/1.453, allocations: 9.441 MB / 0.763 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.708e-05/1.453, allocations: 27.56 kB / 0.763 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01392/1.467, allocations: 9.866 MB / 0.7726 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.046e-05/1.467, allocations: 48.66 kB / 0.7727 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/1.467, allocations: 102.7 kB / 0.7728 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002193/1.47, allocations: 0.9402 MB / 0.7737 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004853/1.474, allocations: 1.583 MB / 0.7752 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009456/1.484, allocations: 10.19 MB / 0.7852 GB, free: 203.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004566/1.489, allocations: 412.1 kB / 0.7856 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005483/1.489, allocations: 351 kB / 0.7859 GB, free: 203.7 MB / 0.5763 GB 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.005622/1.495, allocations: 4.24 MB / 0.7901 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009078/1.496, allocations: 0.5382 MB / 0.7906 GB, free: 200.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009323/1.505, allocations: 6.478 MB / 0.7969 GB, free: 195.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/1.505, allocations: 44 kB / 0.797 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/1.505, allocations: 11.94 kB / 0.797 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.379e-05/1.505, allocations: 25.27 kB / 0.797 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/1.528, allocations: 15.69 MB / 0.8123 GB, free: 182.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/1.528, allocations: 5.688 kB / 0.8123 GB, free: 182.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/1.531, allocations: 0.7451 MB / 0.8131 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002023/1.533, allocations: 0.7897 MB / 0.8138 GB, free: 181.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/1.533, allocations: 87.91 kB / 0.8139 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008249/1.542, allocations: 9.356 MB / 0.823 GB, free: 171.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.542, allocations: 4 kB / 0.823 GB, free: 171.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01138/1.553, allocations: 9.516 MB / 0.8323 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/1.555, allocations: 1.086 MB / 0.8334 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006153/1.555, allocations: 73.55 kB / 0.8335 GB, free: 161.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002198/1.558, allocations: 219.8 kB / 0.8337 GB, free: 160.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004652/1.558, allocations: 270.7 kB / 0.8339 GB, free: 160.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/1.558, allocations: 108.1 kB / 0.834 GB, free: 160.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004097/1.563, allocations: 3.35 MB / 0.8373 GB, free: 157.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.31e-07/1.563, allocations: 0 / 0.8373 GB, free: 157.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.00569/1.568, allocations: 1.883 MB / 0.8392 GB, free: 155.3 MB / 0.5763 GB 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.0005701/1.569, allocations: 262.2 kB / 0.8394 GB, free: 155 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01013/1.579, allocations: 7.671 MB / 0.8469 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/1.579, allocations: 4 kB / 0.8469 GB, free: 147.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004816/1.584, allocations: 3.558 MB / 0.8504 GB, free: 143.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007243/1.591, allocations: 1.281 MB / 0.8516 GB, free: 142.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03283/1.624, allocations: 19.98 MB / 0.8711 GB, free: 122.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007455/1.631, allocations: 7.334 MB / 0.8783 GB, free: 115 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00586/1.637, allocations: 2.148 MB / 0.8804 GB, free: 112.8 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.639, allocations: 403.4 kB / 0.8808 GB, free: 112.4 MB / 0.5763 GB Notification: Performance of SimCode: time 7.71e-07/1.639, allocations: 0 / 0.8808 GB, free: 112.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.1147/1.753, allocations: 71.87 MB / 0.951 GB, free: 41.24 MB / 0.5763 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/jenkins/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/jenkins/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