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.00127/0.00127, allocations: 108.8 kB / 17.06 MB, free: 6.023 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.001266/0.001266, allocations: 191 kB / 18 MB, free: 5.109 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009705/0.0009705, allocations: 47.92 kB / 351.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2385, allocations: 49.43 MB / 400.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03854/0.2771, allocations: 39.44 MB / 440.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02136/0.2985, allocations: 10.43 MB / 450.6 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007831/0.3063, allocations: 303 kB / 450.9 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01921/0.3256, allocations: 8.569 MB / 459.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.3371, allocations: 3.48 MB / 463 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007267/0.3444, allocations: 2.334 MB / 465.3 MB, free: 8.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01618/0.3606, allocations: 12.89 MB / 478.2 MB, free: 11.14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03779/0.3985, allocations: 25.3 MB / 0.4917 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01005/0.4085, allocations: 6.826 MB / 0.4984 GB, free: 10.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01114/0.4197, allocations: 7.72 MB / 0.5059 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004627/0.4244, allocations: 1.949 MB / 0.5078 GB, free: 1.141 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00614/0.4305, allocations: 2.355 MB / 0.5101 GB, free: 14.79 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005293/0.4358, allocations: 3.947 MB / 0.514 GB, free: 10.83 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01146/0.4473, allocations: 7.552 MB / 0.5213 GB, free: 3.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4222/0.8695, allocations: 25.87 MB / 0.5466 GB, free: 56.2 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.8696, allocations: 0 / 0.5466 GB, free: 56.2 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.8696, allocations: 0 / 0.5466 GB, free: 56.2 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000601/0.8702, allocations: 0 / 0.5466 GB, free: 56.2 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.04294/0.9132, allocations: 15 MB / 0.5612 GB, free: 52.27 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.9132, allocations: 12.94 kB / 0.5613 GB, free: 52.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03307/0.9463, allocations: 6.146 MB / 0.5673 GB, free: 50.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01694/0.9633, allocations: 8.053 MB / 0.5751 GB, free: 48.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008047/0.9641, allocations: 0.8998 MB / 0.576 GB, free: 48.49 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005195/0.9693, allocations: 1.197 MB / 0.5772 GB, free: 48.43 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04814/1.017, allocations: 18.65 MB / 0.5954 GB, free: 32.91 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006173/1.018, allocations: 19.81 kB / 0.5954 GB, free: 32.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004406/1.023, allocations: 0.4951 MB / 0.5959 GB, free: 32.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005436/1.023, allocations: 0.6382 MB / 0.5965 GB, free: 31.76 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03337/1.057, allocations: 16.76 MB / 0.6129 GB, free: 14.99 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09671/1.153, allocations: 58.13 MB / 0.6697 GB, free: 4.508 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02343/1.177, allocations: 32.87 MB / 0.7018 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005541/1.182, allocations: 3.71 MB / 0.7054 GB, free: 12.04 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01403/1.196, allocations: 8.628 MB / 0.7138 GB, free: 3.461 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/1.196, allocations: 73.25 kB / 0.7139 GB, free: 3.379 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 4.388e-06/1.196, allocations: 0 / 0.7139 GB, free: 3.379 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03314/1.23, allocations: 17.57 MB / 0.731 GB, free: 1.715 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/1.23, allocations: 94.47 kB / 0.7311 GB, free: 1.609 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0069/1.237, allocations: 5.013 MB / 0.736 GB, free: 12.6 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0005065/1.237, allocations: 89.7 kB / 0.7361 GB, free: 12.51 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003176/1.24, allocations: 5.44 MB / 0.7414 GB, free: 7.035 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001331/1.242, allocations: 1.359 MB / 0.7427 GB, free: 5.691 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001921/1.244, allocations: 1.326 MB / 0.744 GB, free: 4.355 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 8.675e-05/1.244, allocations: 301.1 kB / 0.7443 GB, free: 4.059 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004274/1.248, allocations: 2.906 MB / 0.7472 GB, free: 1.148 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2178/1.466, allocations: 5.872 MB / 0.7529 GB, free: 220.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009713/1.475, allocations: 9.44 MB / 0.7621 GB, free: 214.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/1.476, allocations: 31.66 kB / 0.7621 GB, free: 214.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01442/1.49, allocations: 9.838 MB / 0.7717 GB, free: 211 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.456e-05/1.49, allocations: 48.84 kB / 0.7718 GB, free: 211 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/1.49, allocations: 101.7 kB / 0.7719 GB, free: 211 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/1.492, allocations: 0.9482 MB / 0.7728 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004934/1.497, allocations: 1.576 MB / 0.7744 GB, free: 210.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009123/1.507, allocations: 10.18 MB / 0.7843 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004684/1.511, allocations: 407.7 kB / 0.7847 GB, free: 203.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008183/1.512, allocations: 354.7 kB / 0.785 GB, free: 203.5 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.005642/1.518, allocations: 4.25 MB / 0.7892 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001129/1.519, allocations: 0.5099 MB / 0.7897 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008895/1.528, allocations: 6.482 MB / 0.796 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.477e-05/1.528, allocations: 40 kB / 0.796 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/1.528, allocations: 15.94 kB / 0.7961 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-05/1.528, allocations: 22.88 kB / 0.7961 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02317/1.551, allocations: 15.7 MB / 0.8114 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.551, allocations: 0 / 0.8114 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00285/1.554, allocations: 0.7468 MB / 0.8121 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/1.556, allocations: 0.7901 MB / 0.8129 GB, free: 182.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002333/1.556, allocations: 91.67 kB / 0.813 GB, free: 182.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007763/1.564, allocations: 9.329 MB / 0.8221 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.564, allocations: 4 kB / 0.8221 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/1.575, allocations: 9.502 MB / 0.8314 GB, free: 163.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001938/1.577, allocations: 1.058 MB / 0.8324 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005793/1.577, allocations: 72 kB / 0.8325 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002014/1.579, allocations: 223.8 kB / 0.8327 GB, free: 161.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/1.58, allocations: 264.3 kB / 0.833 GB, free: 161.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002312/1.58, allocations: 116 kB / 0.8331 GB, free: 161.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003808/1.584, allocations: 3.346 MB / 0.8363 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.41e-07/1.584, allocations: 6.906 kB / 0.8363 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005436/1.589, allocations: 1.874 MB / 0.8382 GB, free: 156.4 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.0005144/1.59, allocations: 263.6 kB / 0.8384 GB, free: 156.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009861/1.6, allocations: 7.667 MB / 0.8459 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/1.6, allocations: 5.812 kB / 0.8459 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00402/1.604, allocations: 3.558 MB / 0.8494 GB, free: 144.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004823/1.609, allocations: 1.286 MB / 0.8506 GB, free: 143.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02508/1.634, allocations: 19.65 MB / 0.8698 GB, free: 123.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005619/1.639, allocations: 7.332 MB / 0.877 GB, free: 116.4 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004777/1.644, allocations: 2.141 MB / 0.8791 GB, free: 114.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/1.645, allocations: 403.4 kB / 0.8795 GB, free: 113.9 MB / 0.5763 GB Notification: Performance of SimCode: time 7.52e-07/1.645, allocations: 4 kB / 0.8795 GB, free: 113.9 MB / 0.5763 GB Notification: Performance of Templates: time 0.1046/1.75, allocations: 71.88 MB / 0.9497 GB, free: 42.66 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