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.001269/0.001269, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001217/0.001217, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.284/1.284, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009753/0.0009754, allocations: 46.98 kB / 300 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.08107, allocations: 49.45 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1731/0.2542, allocations: 38.71 MB / 388.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.2752, allocations: 10.29 MB / 398.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007791/0.283, allocations: 292.1 kB / 398.7 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01752/0.3005, allocations: 7.981 MB / 406.7 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.3113, allocations: 3.097 MB / 409.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006514/0.3178, allocations: 2.158 MB / 411.9 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01673/0.3346, allocations: 12.93 MB / 424.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03326/0.3679, allocations: 20.57 MB / 445.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009721/0.3776, allocations: 5.868 MB / 451.3 MB, free: 308 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01089/0.3886, allocations: 7.361 MB / 458.7 MB, free: 8.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004125/0.3927, allocations: 1.305 MB / 460 MB, free: 7.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006232/0.399, allocations: 1.695 MB / 461.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005079/0.4041, allocations: 3.275 MB / 464.9 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01196/0.4161, allocations: 6.861 MB / 471.8 MB, free: 11.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02518/0.4413, allocations: 25.23 MB / 497 MB, free: 2.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.4413, allocations: 0 / 497 MB, free: 2.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.4413, allocations: 0 / 497 MB, free: 2.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006204/0.4419, allocations: 3.938 kB / 497 MB, free: 2.43 MB / 398.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.04146/0.4834, allocations: 15.03 MB / 0.5001 GB, free: 3.277 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4835, allocations: 8.031 kB / 0.5001 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03381/0.5173, allocations: 6.131 MB / 0.5061 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01577/0.5331, allocations: 7.793 MB / 0.5137 GB, free: 5.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008684/0.534, allocations: 0.9072 MB / 0.5146 GB, free: 4.332 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003776/0.5378, allocations: 1.199 MB / 0.5157 GB, free: 3.133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3387/0.8765, allocations: 18.65 MB / 0.534 GB, free: 110.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007758/0.8773, allocations: 21.73 kB / 0.534 GB, free: 110.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00386/0.8812, allocations: 0.4957 MB / 0.5345 GB, free: 110.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001033/0.8822, allocations: 0.6411 MB / 0.5351 GB, free: 110.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03538/0.9176, allocations: 16.76 MB / 0.5514 GB, free: 102.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08902/1.007, allocations: 58.86 MB / 0.6089 GB, free: 45.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/1.026, allocations: 32.88 MB / 0.641 GB, free: 8.793 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005239/1.031, allocations: 3.73 MB / 0.6447 GB, free: 5.055 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01536/1.046, allocations: 8.658 MB / 0.6531 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.846e-05/1.046, allocations: 69.31 kB / 0.6532 GB, free: 12.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.769e-06/1.046, allocations: 0 / 0.6532 GB, free: 12.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03893/1.085, allocations: 17.55 MB / 0.6703 GB, free: 10.62 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/1.085, allocations: 98.41 kB / 0.6704 GB, free: 10.51 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009318/1.095, allocations: 5.012 MB / 0.6753 GB, free: 5.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007775/1.096, allocations: 93.7 kB / 0.6754 GB, free: 5.402 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003599/1.099, allocations: 5.439 MB / 0.6807 GB, free: 15.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001656/1.101, allocations: 1.354 MB / 0.6821 GB, free: 14.58 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002911/1.104, allocations: 1.326 MB / 0.6834 GB, free: 13.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.369e-05/1.104, allocations: 301.1 kB / 0.6836 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004722/1.109, allocations: 2.902 MB / 0.6865 GB, free: 10.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006719/1.115, allocations: 5.881 MB / 0.6922 GB, free: 2.762 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1874/1.303, allocations: 9.432 MB / 0.7014 GB, free: 139.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.638e-05/1.303, allocations: 29.5 kB / 0.7015 GB, free: 139.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01735/1.32, allocations: 9.843 MB / 0.7111 GB, free: 136.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.483e-05/1.32, allocations: 48.52 kB / 0.7111 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001984/1.321, allocations: 99.28 kB / 0.7112 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002696/1.323, allocations: 0.9347 MB / 0.7121 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006008/1.329, allocations: 1.587 MB / 0.7137 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/1.34, allocations: 9.5 MB / 0.7229 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005181/1.345, allocations: 397.6 kB / 0.7233 GB, free: 129.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007741/1.346, allocations: 354.4 kB / 0.7237 GB, free: 129.2 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.006013/1.352, allocations: 4.247 MB / 0.7278 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.353, allocations: 0.5056 MB / 0.7283 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009868/1.363, allocations: 6.487 MB / 0.7346 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-05/1.363, allocations: 44.78 kB / 0.7347 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-05/1.363, allocations: 14.72 kB / 0.7347 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-05/1.363, allocations: 23.03 kB / 0.7347 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02316/1.386, allocations: 15.72 MB / 0.7501 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/1.386, allocations: 3.562 kB / 0.7501 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003003/1.389, allocations: 0.7408 MB / 0.7508 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/1.391, allocations: 0.7849 MB / 0.7516 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002773/1.391, allocations: 87.27 kB / 0.7516 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007859/1.399, allocations: 8.66 MB / 0.7601 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/1.399, allocations: 11.47 kB / 0.7601 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/1.412, allocations: 9.495 MB / 0.7694 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002473/1.414, allocations: 1.052 MB / 0.7704 GB, free: 99.63 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000907/1.415, allocations: 76 kB / 0.7705 GB, free: 99.56 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002375/1.418, allocations: 219.8 kB / 0.7707 GB, free: 99.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005506/1.418, allocations: 262.7 kB / 0.7709 GB, free: 99.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002445/1.419, allocations: 116 kB / 0.7711 GB, free: 98.97 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00442/1.423, allocations: 3.35 MB / 0.7743 GB, free: 95.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.423, allocations: 2.844 kB / 0.7743 GB, free: 95.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006132/1.429, allocations: 1.877 MB / 0.7762 GB, free: 93.76 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.0006071/1.43, allocations: 262 kB / 0.7764 GB, free: 93.51 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009816/1.44, allocations: 7.65 MB / 0.7839 GB, free: 85.78 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.44, allocations: 0 / 0.7839 GB, free: 85.78 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00476/1.444, allocations: 3.556 MB / 0.7874 GB, free: 82.15 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005881/1.45, allocations: 1.216 MB / 0.7885 GB, free: 80.97 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02928/1.48, allocations: 24.93 MB / 0.8129 GB, free: 55.99 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006208/1.486, allocations: 7.328 MB / 0.82 GB, free: 48.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005936/1.492, allocations: 2.148 MB / 0.8221 GB, free: 46.47 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.493, allocations: 403.4 kB / 0.8225 GB, free: 46.08 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/1.493, allocations: 0 / 0.8225 GB, free: 46.08 MB / 478.1 MB Notification: Performance of Templates: time 0.2998/1.793, allocations: 73.39 MB / 0.8942 GB, free: 132.6 MB / 494.1 MB 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