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.001408/0.001408, allocations: 103.9 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.001614/0.001615, allocations: 199.9 kB / 18 MB, free: 5.102 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.299/1.299, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009712/0.0009713, allocations: 47.92 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.238, allocations: 49.44 MB / 400.8 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03637/0.2744, allocations: 39.43 MB / 440.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02046/0.2949, allocations: 10.42 MB / 450.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006636/0.3016, allocations: 303 kB / 450.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01904/0.3206, allocations: 8.503 MB / 459.4 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.3319, allocations: 3.414 MB / 462.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006818/0.3387, allocations: 2.33 MB / 465.2 MB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0159/0.3546, allocations: 12.88 MB / 478.1 MB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03544/0.3901, allocations: 25.3 MB / 0.4916 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0104/0.4005, allocations: 6.822 MB / 0.4982 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01313/0.4137, allocations: 7.728 MB / 0.5058 GB, free: 3.367 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004957/0.4187, allocations: 1.957 MB / 0.5077 GB, free: 1.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00872/0.4274, allocations: 2.339 MB / 0.51 GB, free: 15.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007293/0.4348, allocations: 3.955 MB / 0.5138 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01274/0.4475, allocations: 7.548 MB / 0.5212 GB, free: 3.531 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4099/0.8574, allocations: 25.87 MB / 0.5465 GB, free: 56.17 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.8575, allocations: 3.062 kB / 0.5465 GB, free: 56.17 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.8575, allocations: 0 / 0.5465 GB, free: 56.17 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007093/0.8582, allocations: 0 / 0.5465 GB, free: 56.17 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.03894/0.8972, allocations: 15 MB / 0.5611 GB, free: 52.24 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.8972, allocations: 9.75 kB / 0.5611 GB, free: 52.24 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03177/0.929, allocations: 6.146 MB / 0.5671 GB, free: 51 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/0.944, allocations: 8.047 MB / 0.575 GB, free: 48.69 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005385/0.9446, allocations: 0.9023 MB / 0.5759 GB, free: 48.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004088/0.9487, allocations: 1.192 MB / 0.577 GB, free: 48.53 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03844/0.9871, allocations: 18.66 MB / 0.5953 GB, free: 33 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004108/0.9876, allocations: 19.8 kB / 0.5953 GB, free: 32.98 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00398/0.9916, allocations: 0.4932 MB / 0.5958 GB, free: 32.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004733/0.992, allocations: 0.6382 MB / 0.5964 GB, free: 31.86 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03332/1.025, allocations: 16.76 MB / 0.6127 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09186/1.117, allocations: 58.13 MB / 0.6695 GB, free: 4.602 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02443/1.142, allocations: 32.88 MB / 0.7016 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00575/1.148, allocations: 3.706 MB / 0.7052 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01401/1.162, allocations: 8.627 MB / 0.7137 GB, free: 3.551 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/1.162, allocations: 65.31 kB / 0.7137 GB, free: 3.477 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 4.398e-06/1.162, allocations: 0 / 0.7137 GB, free: 3.477 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03321/1.195, allocations: 17.57 MB / 0.7309 GB, free: 1.812 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/1.195, allocations: 94.47 kB / 0.731 GB, free: 1.707 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00656/1.201, allocations: 5.013 MB / 0.7359 GB, free: 12.7 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002657/1.202, allocations: 89.7 kB / 0.736 GB, free: 12.61 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003056/1.205, allocations: 5.443 MB / 0.7413 GB, free: 7.129 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001047/1.206, allocations: 1.354 MB / 0.7426 GB, free: 5.785 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001805/1.208, allocations: 1.322 MB / 0.7439 GB, free: 4.453 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 8.738e-05/1.208, allocations: 305.1 kB / 0.7442 GB, free: 4.152 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004145/1.212, allocations: 2.905 MB / 0.747 GB, free: 1.246 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2161/1.428, allocations: 5.871 MB / 0.7527 GB, free: 220.6 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009508/1.438, allocations: 9.448 MB / 0.762 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/1.438, allocations: 27.72 kB / 0.762 GB, free: 214.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01534/1.453, allocations: 9.841 MB / 0.7716 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001861/1.453, allocations: 47.41 kB / 0.7717 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002586/1.454, allocations: 103.7 kB / 0.7718 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/1.456, allocations: 0.9424 MB / 0.7727 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005621/1.462, allocations: 1.576 MB / 0.7742 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/1.472, allocations: 10.19 MB / 0.7842 GB, free: 203.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005846/1.478, allocations: 406.1 kB / 0.7845 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00114/1.479, allocations: 349 kB / 0.7849 GB, free: 203.6 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.007123/1.486, allocations: 4.249 MB / 0.789 GB, free: 201.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/1.488, allocations: 0.5114 MB / 0.7895 GB, free: 201.6 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/1.498, allocations: 6.48 MB / 0.7959 GB, free: 196.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.879e-05/1.498, allocations: 40 kB / 0.7959 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/1.498, allocations: 15.83 kB / 0.7959 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.695e-05/1.498, allocations: 18.98 kB / 0.7959 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02459/1.523, allocations: 15.7 MB / 0.8113 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.523, allocations: 0 / 0.8113 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003098/1.526, allocations: 0.748 MB / 0.812 GB, free: 183.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/1.528, allocations: 0.7847 MB / 0.8128 GB, free: 182.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003843/1.528, allocations: 91.91 kB / 0.8128 GB, free: 182.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008581/1.537, allocations: 9.343 MB / 0.822 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.537, allocations: 4.031 kB / 0.822 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/1.549, allocations: 9.494 MB / 0.8312 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/1.551, allocations: 1.062 MB / 0.8323 GB, free: 162.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008084/1.552, allocations: 68 kB / 0.8323 GB, free: 162.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002523/1.555, allocations: 223.8 kB / 0.8326 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005761/1.555, allocations: 262.7 kB / 0.8328 GB, free: 161.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002531/1.555, allocations: 116 kB / 0.8329 GB, free: 161.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004582/1.56, allocations: 3.35 MB / 0.8362 GB, free: 158.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.503e-06/1.56, allocations: 4 kB / 0.8362 GB, free: 158.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006717/1.567, allocations: 1.879 MB / 0.838 GB, free: 156.6 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.0007179/1.567, allocations: 257.4 kB / 0.8383 GB, free: 156.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01032/1.578, allocations: 7.667 MB / 0.8458 GB, free: 148.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/1.578, allocations: 5.875 kB / 0.8458 GB, free: 148.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004527/1.582, allocations: 3.558 MB / 0.8492 GB, free: 145 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006446/1.589, allocations: 1.29 MB / 0.8505 GB, free: 143.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03079/1.62, allocations: 19.66 MB / 0.8697 GB, free: 124 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008375/1.628, allocations: 7.328 MB / 0.8769 GB, free: 116.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005548/1.634, allocations: 2.145 MB / 0.8789 GB, free: 114.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/1.635, allocations: 403.4 kB / 0.8793 GB, free: 114.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.042e-06/1.635, allocations: 4 kB / 0.8793 GB, free: 114.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.1129/1.748, allocations: 72.09 MB / 0.9497 GB, free: 42.75 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