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/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 3.2.3+maint.om/package.mo", uses=false) 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 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|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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001073/0.001073, allocations: 191 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 43.94 kB / 328.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1104, allocations: 46.62 MB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2035/0.314, allocations: 40.02 MB / 415.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02823/0.3423, allocations: 10.55 MB / 425.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01043/0.3528, allocations: 257.9 kB / 426 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02073/0.3736, allocations: 8.54 MB / 434.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01511/0.3887, allocations: 3.64 MB / 438.2 MB, free: 436 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008199/0.3969, allocations: 2.395 MB / 440.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01832/0.4153, allocations: 13.42 MB / 454 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04178/0.4571, allocations: 25.37 MB / 479.4 MB, free: 7.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01178/0.4689, allocations: 7.071 MB / 486.4 MB, free: 15.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01346/0.4824, allocations: 8.047 MB / 494.5 MB, free: 7.875 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00524/0.4877, allocations: 1.992 MB / 496.5 MB, free: 5.883 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007648/0.4954, allocations: 2.378 MB / 498.9 MB, free: 3.504 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006156/0.5015, allocations: 4.154 MB / 0.4912 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01351/0.5151, allocations: 7.824 MB / 0.4989 GB, free: 7.484 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03239/0.5475, allocations: 26.43 MB / 0.5247 GB, free: 12.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/0.5476, allocations: 0 / 0.5247 GB, free: 12.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5476, allocations: 0 / 0.5247 GB, free: 12.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007444/0.5483, allocations: 0 / 0.5247 GB, free: 12.98 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04967/0.598, allocations: 15.59 MB / 0.5399 GB, free: 13.27 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.5981, allocations: 12.03 kB / 0.5399 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05122/0.6493, allocations: 9.114 MB / 0.5488 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3423/0.9916, allocations: 7.504 MB / 0.5561 GB, free: 133.7 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007726/0.9924, allocations: 0.9432 MB / 0.5571 GB, free: 133.3 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003947/0.9964, allocations: 1.238 MB / 0.5583 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04344/1.04, allocations: 20.16 MB / 0.578 GB, free: 125 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003329/1.04, allocations: 21.16 kB / 0.578 GB, free: 125 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001926/1.042, allocations: 0.5111 MB / 0.5785 GB, free: 124.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006282/1.043, allocations: 0.732 MB / 0.5792 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03103/1.074, allocations: 18.99 MB / 0.5977 GB, free: 112.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0894/1.163, allocations: 62.64 MB / 0.6589 GB, free: 49 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03233/1.196, allocations: 56.98 MB / 0.7146 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007067/1.203, allocations: 4.096 MB / 0.7186 GB, free: 13.03 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02135/1.224, allocations: 11.34 MB / 0.7296 GB, free: 1.672 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.64e-05/1.224, allocations: 69.31 kB / 0.7297 GB, free: 1.594 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 6.002e-06/1.224, allocations: 0 / 0.7297 GB, free: 1.594 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2372/1.461, allocations: 18.13 MB / 0.7474 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/1.462, allocations: 96.58 kB / 0.7475 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007231/1.469, allocations: 5.462 MB / 0.7528 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005515/1.469, allocations: 85.42 kB / 0.7529 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00269/1.472, allocations: 5.888 MB / 0.7587 GB, free: 161.6 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001208/1.473, allocations: 1.374 MB / 0.76 GB, free: 160.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002099/1.475, allocations: 1.509 MB / 0.7615 GB, free: 159.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.172e-05/1.475, allocations: 306.6 kB / 0.7618 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004546/1.48, allocations: 3.083 MB / 0.7648 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005585/1.486, allocations: 6.751 MB / 0.7714 GB, free: 152.4 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/1.498, allocations: 10.59 MB / 0.7817 GB, free: 144.2 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/1.498, allocations: 36.16 kB / 0.7817 GB, free: 144.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0164/1.514, allocations: 10.79 MB / 0.7923 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.015e-05/1.514, allocations: 57.44 kB / 0.7923 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/1.515, allocations: 127.7 kB / 0.7925 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002293/1.517, allocations: 0.9737 MB / 0.7934 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006449/1.523, allocations: 1.809 MB / 0.7952 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009935/1.533, allocations: 10.25 MB / 0.8052 GB, free: 132.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006099/1.54, allocations: 450.5 kB / 0.8056 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/1.541, allocations: 413.8 kB / 0.806 GB, free: 132.1 MB / 0.5138 GB 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.006871/1.548, allocations: 4.459 MB / 0.8104 GB, free: 129.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/1.549, allocations: 0.5405 MB / 0.8109 GB, free: 129.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/1.561, allocations: 6.523 MB / 0.8173 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/1.561, allocations: 40 kB / 0.8173 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-05/1.561, allocations: 8 kB / 0.8173 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.837e-05/1.561, allocations: 23.91 kB / 0.8173 GB, free: 125.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02923/1.59, allocations: 15.95 MB / 0.8329 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/1.59, allocations: 0 / 0.8329 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003256/1.594, allocations: 0.7528 MB / 0.8336 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002007/1.596, allocations: 0.7992 MB / 0.8344 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/1.596, allocations: 83.92 kB / 0.8345 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008333/1.604, allocations: 9.344 MB / 0.8436 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.604, allocations: 7.938 kB / 0.8436 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/1.616, allocations: 9.521 MB / 0.8529 GB, free: 90.86 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/1.619, allocations: 1.08 MB / 0.854 GB, free: 89.75 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.62, allocations: 75.89 kB / 0.8541 GB, free: 89.68 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.623, allocations: 219.8 kB / 0.8543 GB, free: 89.46 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006134/1.624, allocations: 262.8 kB / 0.8545 GB, free: 89.21 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002589/1.624, allocations: 115.9 kB / 0.8546 GB, free: 89.09 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00542/1.629, allocations: 3.603 MB / 0.8582 GB, free: 85.52 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.81e-07/1.629, allocations: 0 / 0.8582 GB, free: 85.52 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007981/1.637, allocations: 1.985 MB / 0.8601 GB, free: 83.54 MB / 0.5138 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%), (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.0008881/1.638, allocations: 257.7 kB / 0.8603 GB, free: 83.28 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0111/1.649, allocations: 8.066 MB / 0.8682 GB, free: 75.15 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.65, allocations: 5.531 kB / 0.8682 GB, free: 75.15 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004897/1.654, allocations: 3.534 MB / 0.8717 GB, free: 71.54 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007799/1.662, allocations: 1.311 MB / 0.8729 GB, free: 70.24 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03154/1.694, allocations: 20.74 MB / 0.8932 GB, free: 49.48 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006792/1.701, allocations: 7.594 MB / 0.9006 GB, free: 41.84 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005609/1.706, allocations: 2.359 MB / 0.9029 GB, free: 39.47 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.708, allocations: 431.3 kB / 0.9033 GB, free: 39.05 MB / 0.5138 GB Notification: Performance of SimCode: time 8.82e-07/1.708, allocations: 0 / 0.9033 GB, free: 39.05 MB / 0.5138 GB Notification: Performance of Templates: time 0.325/2.033, allocations: 73.93 MB / 0.9755 GB, free: 141.5 MB / 0.5138 GB 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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