Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.13/1.13, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008499/0.0008499, allocations: 98.61 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007023/0.0007023, allocations: 47.92 kB / 327.2 MB, free: 296 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1774, allocations: 46.62 MB / 373.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02527/0.2028, allocations: 39.29 MB / 413.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.2188, allocations: 10.42 MB / 423.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005619/0.2245, allocations: 255 kB / 423.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01602/0.2405, allocations: 8.008 MB / 431.8 MB, free: 7.355 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009677/0.2502, allocations: 3.317 MB / 435.1 MB, free: 4.023 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00531/0.2555, allocations: 2.211 MB / 437.3 MB, free: 1.809 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0141/0.2696, allocations: 13.85 MB / 451.2 MB, free: 3.902 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02943/0.2991, allocations: 20.63 MB / 471.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008745/0.3079, allocations: 6.094 MB / 477.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01097/0.3189, allocations: 7.68 MB / 485.6 MB, free: 1.312 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004339/0.3233, allocations: 1.312 MB / 486.9 MB, free: 0 / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006003/0.3293, allocations: 1.699 MB / 488.6 MB, free: 14.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004826/0.3342, allocations: 3.447 MB / 492.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01142/0.3456, allocations: 7.105 MB / 499.2 MB, free: 3.707 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2868/0.6324, allocations: 25.78 MB / 0.5126 GB, free: 42.29 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.6325, allocations: 0 / 0.5126 GB, free: 42.29 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6325, allocations: 0.625 kB / 0.5126 GB, free: 42.29 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0005755/0.6331, allocations: 0 / 0.5126 GB, free: 42.29 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04003/0.6731, allocations: 15.63 MB / 0.5279 GB, free: 35.55 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.6732, allocations: 7.875 kB / 0.5279 GB, free: 35.55 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04204/0.7152, allocations: 9.101 MB / 0.5368 GB, free: 32.04 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0154/0.7306, allocations: 7.45 MB / 0.5441 GB, free: 27.14 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005086/0.7312, allocations: 0.9523 MB / 0.545 GB, free: 26.2 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003977/0.7352, allocations: 1.251 MB / 0.5462 GB, free: 24.96 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03864/0.7738, allocations: 20.15 MB / 0.5659 GB, free: 4.785 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00034/0.7742, allocations: 23.8 kB / 0.5659 GB, free: 4.762 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003214/0.7774, allocations: 0.5176 MB / 0.5664 GB, free: 4.258 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004999/0.7779, allocations: 0.7287 MB / 0.5671 GB, free: 3.531 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0363/0.8142, allocations: 18.97 MB / 0.5857 GB, free: 0.5547 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/0.9147, allocations: 63.4 MB / 0.6476 GB, free: 0.582 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1867/1.102, allocations: 56.98 MB / 0.7032 GB, free: 119.5 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006576/1.108, allocations: 4.11 MB / 0.7072 GB, free: 119.4 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01865/1.127, allocations: 11.39 MB / 0.7184 GB, free: 116.4 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/1.127, allocations: 69.58 kB / 0.7184 GB, free: 116.4 MB / 474.8 MB Notification: Performance of pre-optimization done (n=349): time 4.719e-06/1.127, allocations: 0 / 0.7184 GB, free: 116.4 MB / 474.8 MB Notification: Performance of matching and sorting (n=389): time 0.02943/1.156, allocations: 18.13 MB / 0.7361 GB, free: 108.9 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/1.156, allocations: 95.84 kB / 0.7362 GB, free: 108.8 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005748/1.162, allocations: 5.465 MB / 0.7416 GB, free: 106.8 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001997/1.162, allocations: 88.45 kB / 0.7417 GB, free: 106.7 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/1.164, allocations: 5.878 MB / 0.7474 GB, free: 102.2 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006194/1.165, allocations: 1.377 MB / 0.7487 GB, free: 101 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/1.167, allocations: 1.515 MB / 0.7502 GB, free: 99.57 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 3.165e-05/1.167, allocations: 301.1 kB / 0.7505 GB, free: 99.27 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/1.17, allocations: 3.08 MB / 0.7535 GB, free: 96.67 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004349/1.174, allocations: 6.751 MB / 0.7601 GB, free: 88.76 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00798/1.182, allocations: 10.59 MB / 0.7704 GB, free: 77.12 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.666e-05/1.182, allocations: 36 kB / 0.7705 GB, free: 77.09 MB / 474.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01273/1.195, allocations: 10.8 MB / 0.781 GB, free: 66.84 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.955e-05/1.195, allocations: 60 kB / 0.7811 GB, free: 66.79 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001309/1.195, allocations: 124 kB / 0.7812 GB, free: 66.66 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/1.197, allocations: 0.9732 MB / 0.7821 GB, free: 65.68 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005173/1.203, allocations: 1.813 MB / 0.7839 GB, free: 63.86 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008109/1.211, allocations: 9.551 MB / 0.7932 GB, free: 53.92 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004838/1.216, allocations: 443.1 kB / 0.7937 GB, free: 53.49 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004518/1.216, allocations: 423.7 kB / 0.7941 GB, free: 53.08 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005599/1.222, allocations: 4.454 MB / 0.7984 GB, free: 48.61 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007108/1.222, allocations: 0.5479 MB / 0.799 GB, free: 48.05 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008437/1.231, allocations: 6.529 MB / 0.8053 GB, free: 41.48 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/1.231, allocations: 44 kB / 0.8054 GB, free: 41.44 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/1.231, allocations: 11.94 kB / 0.8054 GB, free: 41.43 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.587e-05/1.231, allocations: 19.92 kB / 0.8054 GB, free: 41.41 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/1.25, allocations: 15.96 MB / 0.821 GB, free: 25.42 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/1.25, allocations: 4 kB / 0.821 GB, free: 25.41 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002721/1.253, allocations: 0.7528 MB / 0.8217 GB, free: 24.66 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/1.254, allocations: 0.7886 MB / 0.8225 GB, free: 23.86 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002176/1.255, allocations: 91.91 kB / 0.8226 GB, free: 23.77 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007082/1.262, allocations: 8.66 MB / 0.831 GB, free: 14.71 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.262, allocations: 8.188 kB / 0.831 GB, free: 14.7 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2046/1.466, allocations: 35.11 MB / 0.8653 GB, free: 145.6 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001919/1.468, allocations: 1.078 MB / 0.8664 GB, free: 145.2 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005466/1.469, allocations: 75.34 kB / 0.8665 GB, free: 145.2 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002116/1.471, allocations: 220.7 kB / 0.8667 GB, free: 145.1 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005099/1.471, allocations: 266.2 kB / 0.8669 GB, free: 145.1 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/1.472, allocations: 113.9 kB / 0.867 GB, free: 145.1 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.004443/1.476, allocations: 3.596 MB / 0.8705 GB, free: 143.8 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.81e-07/1.476, allocations: 0 / 0.8705 GB, free: 143.8 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006601/1.483, allocations: 2.429 MB / 0.8729 GB, free: 143.6 MB / 474.8 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004795/1.483, allocations: 264.7 kB / 0.8732 GB, free: 143.4 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.009575/1.493, allocations: 8.053 MB / 0.881 GB, free: 140.1 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.493, allocations: 2.906 kB / 0.881 GB, free: 140.1 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003961/1.497, allocations: 3.529 MB / 0.8845 GB, free: 138.4 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005301/1.502, allocations: 1.237 MB / 0.8857 GB, free: 138 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0339/1.536, allocations: 29.32 MB / 0.9143 GB, free: 112.1 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006787/1.543, allocations: 7.711 MB / 0.9219 GB, free: 106.2 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.006218/1.549, allocations: 2.367 MB / 0.9242 GB, free: 104.6 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/1.55, allocations: 434.5 kB / 0.9246 GB, free: 104.2 MB / 474.8 MB Notification: Performance of SimCode: time 9.12e-07/1.55, allocations: 0 / 0.9246 GB, free: 104.2 MB / 474.8 MB Notification: Performance of Templates: time 0.1097/1.66, allocations: 84.07 MB / 1.007 GB, free: 21.27 MB / 474.8 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches