Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 114.5 kB / 18.45 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 211.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.401/1.401, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002819/0.002819, allocations: 59.91 kB / 359.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.225, allocations: 50.54 MB / 410.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04529/0.2703, allocations: 40.2 MB / 450.5 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02099/0.2913, allocations: 10.66 MB / 461.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005787/0.297, allocations: 307 kB / 461.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0192/0.3162, allocations: 8.622 MB / 470 MB, free: 5.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01012/0.3264, allocations: 3.485 MB / 473.5 MB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.3323, allocations: 2.375 MB / 475.9 MB, free: 15.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0163/0.3486, allocations: 12.94 MB / 488.8 MB, free: 2.543 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0273/0.3759, allocations: 19.63 MB / 0.4966 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008898/0.3848, allocations: 6.833 MB / 0.5032 GB, free: 7.914 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01044/0.3952, allocations: 7.829 MB / 0.5109 GB, free: 60 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002876/0.3981, allocations: 1.957 MB / 0.5128 GB, free: 14.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004133/0.4022, allocations: 2.363 MB / 0.5151 GB, free: 11.74 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003588/0.4058, allocations: 3.97 MB / 0.519 GB, free: 7.758 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009294/0.4151, allocations: 7.56 MB / 0.5264 GB, free: 172 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3974/0.8125, allocations: 25.97 MB / 0.5517 GB, free: 50.65 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.8125, allocations: 2.562 kB / 0.5517 GB, free: 50.65 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.8125, allocations: 4.906 kB / 0.5517 GB, free: 50.65 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005612/0.8131, allocations: 0 / 0.5517 GB, free: 50.65 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.0373/0.8504, allocations: 15.32 MB / 0.5667 GB, free: 45.86 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.8504, allocations: 9.531 kB / 0.5667 GB, free: 45.86 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03241/0.8829, allocations: 6.213 MB / 0.5728 GB, free: 43.4 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01446/0.8973, allocations: 8.096 MB / 0.5807 GB, free: 41.02 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004702/0.8978, allocations: 0.9004 MB / 0.5816 GB, free: 40.62 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003424/0.9012, allocations: 1.206 MB / 0.5827 GB, free: 40.21 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03019/0.9314, allocations: 18.65 MB / 0.6009 GB, free: 24.94 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002552/0.9317, allocations: 20.47 kB / 0.601 GB, free: 24.92 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001471/0.9331, allocations: 498.7 kB / 0.6014 GB, free: 24.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004033/0.9335, allocations: 0.6444 MB / 0.6021 GB, free: 23.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02432/0.9578, allocations: 16.77 MB / 0.6184 GB, free: 7.023 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09873/1.057, allocations: 58.98 MB / 0.676 GB, free: 11.57 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03003/1.087, allocations: 32.77 MB / 0.708 GB, free: 6.906 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006516/1.093, allocations: 3.409 MB / 0.7114 GB, free: 3.484 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01724/1.11, allocations: 8.858 MB / 0.72 GB, free: 10.66 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.168e-05/1.11, allocations: 81.25 kB / 0.7201 GB, free: 10.57 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 5.711e-06/1.11, allocations: 0 / 0.7201 GB, free: 10.57 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.0373/1.148, allocations: 17.68 MB / 0.7374 GB, free: 8.805 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.966e-05/1.148, allocations: 97.84 kB / 0.7375 GB, free: 8.699 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007761/1.156, allocations: 5.05 MB / 0.7424 GB, free: 3.656 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.000572/1.156, allocations: 85.7 kB / 0.7425 GB, free: 3.566 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004404/1.161, allocations: 5.634 MB / 0.748 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001617/1.162, allocations: 1.418 MB / 0.7494 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002135/1.164, allocations: 1.327 MB / 0.7507 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.164, allocations: 301.1 kB / 0.7509 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004924/1.169, allocations: 2.906 MB / 0.7538 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007576/1.177, allocations: 5.877 MB / 0.7595 GB, free: 0.7383 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2451/1.422, allocations: 9.439 MB / 0.7687 GB, free: 223.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.759e-05/1.422, allocations: 31.12 kB / 0.7688 GB, free: 223.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01437/1.436, allocations: 9.852 MB / 0.7784 GB, free: 220 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.38e-05/1.437, allocations: 49.12 kB / 0.7784 GB, free: 220 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001525/1.437, allocations: 98.78 kB / 0.7785 GB, free: 220 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002395/1.439, allocations: 0.9393 MB / 0.7794 GB, free: 219.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005257/1.444, allocations: 1.582 MB / 0.781 GB, free: 219.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009814/1.454, allocations: 10.19 MB / 0.7909 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005012/1.459, allocations: 418.1 kB / 0.7913 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007325/1.46, allocations: 355.1 kB / 0.7917 GB, free: 212.5 MB / 0.5919 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.005486/1.465, allocations: 4.24 MB / 0.7958 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009526/1.466, allocations: 0.5433 MB / 0.7963 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009278/1.476, allocations: 6.459 MB / 0.8027 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/1.476, allocations: 43.72 kB / 0.8027 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/1.476, allocations: 11.94 kB / 0.8027 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.12e-05/1.476, allocations: 22.22 kB / 0.8027 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02124/1.497, allocations: 15.68 MB / 0.818 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/1.497, allocations: 0 / 0.818 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003042/1.5, allocations: 0.7486 MB / 0.8188 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/1.502, allocations: 0.7849 MB / 0.8195 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002946/1.502, allocations: 90.45 kB / 0.8196 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008732/1.511, allocations: 9.363 MB / 0.8288 GB, free: 184.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.511, allocations: 4 kB / 0.8288 GB, free: 184.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/1.523, allocations: 9.491 MB / 0.838 GB, free: 175.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002309/1.526, allocations: 1.084 MB / 0.8391 GB, free: 174.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006978/1.526, allocations: 72 kB / 0.8392 GB, free: 174 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/1.529, allocations: 227.7 kB / 0.8394 GB, free: 173.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004968/1.529, allocations: 262.7 kB / 0.8396 GB, free: 173.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/1.529, allocations: 112 kB / 0.8397 GB, free: 173.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004322/1.534, allocations: 3.363 MB / 0.843 GB, free: 170.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.534, allocations: 0 / 0.843 GB, free: 170.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00581/1.539, allocations: 1.88 MB / 0.8449 GB, free: 168.2 MB / 0.5919 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.0005637/1.54, allocations: 277.5 kB / 0.8451 GB, free: 167.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009396/1.549, allocations: 7.353 MB / 0.8523 GB, free: 160.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.549, allocations: 3.938 kB / 0.8523 GB, free: 160.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004174/1.554, allocations: 3.324 MB / 0.8556 GB, free: 157.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005171/1.559, allocations: 1.303 MB / 0.8568 GB, free: 155.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02733/1.586, allocations: 20.01 MB / 0.8764 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006149/1.592, allocations: 7.336 MB / 0.8835 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005163/1.597, allocations: 2.156 MB / 0.8856 GB, free: 126.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/1.598, allocations: 403.4 kB / 0.886 GB, free: 125.8 MB / 0.5919 GB Notification: Performance of SimCode: time 9.42e-07/1.598, allocations: 1.531 kB / 0.886 GB, free: 125.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.1151/1.714, allocations: 72.95 MB / 0.9573 GB, free: 53.61 MB / 0.5919 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches