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.0009409/0.0009408, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.001007/0.001007, allocations: 192 kB / 18.51 MB, free: 4.641 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.25/1.25, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001229/0.001229, allocations: 60.34 kB / 280.7 MB, free: 3.145 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08268/0.08392, allocations: 46.63 MB / 327.3 MB, free: 4.441 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03778/0.1217, allocations: 40.01 MB / 367.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.1437, allocations: 10.56 MB / 377.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007677/0.1514, allocations: 267 kB / 378.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1621/0.3136, allocations: 8.53 MB / 386.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.3239, allocations: 3.633 MB / 390.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005726/0.3296, allocations: 2.392 MB / 392.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01346/0.3431, allocations: 13.32 MB / 406 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03265/0.3758, allocations: 25.45 MB / 431.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01036/0.3861, allocations: 7.023 MB / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01163/0.3978, allocations: 8.079 MB / 446.6 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00421/0.402, allocations: 1.988 MB / 448.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006412/0.4085, allocations: 2.387 MB / 450.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005092/0.4136, allocations: 4.149 MB / 455.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01262/0.4262, allocations: 7.838 MB / 462.9 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02741/0.4536, allocations: 26.24 MB / 489.2 MB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4537, allocations: 0 / 489.2 MB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4537, allocations: 0 / 489.2 MB, free: 12.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007318/0.4544, allocations: 4 kB / 489.2 MB, free: 12.76 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04388/0.4983, allocations: 15.63 MB / 0.493 GB, free: 13.12 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.4984, allocations: 16.03 kB / 0.493 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0481/0.5465, allocations: 9.095 MB / 0.5019 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01564/0.5621, allocations: 7.477 MB / 0.5092 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009638/0.5631, allocations: 0.9538 MB / 0.5101 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004247/0.5674, allocations: 1.239 MB / 0.5113 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04511/0.6125, allocations: 20.16 MB / 0.531 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004401/0.613, allocations: 23.75 kB / 0.531 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002849/0.6159, allocations: 0.5109 MB / 0.5315 GB, free: 5.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007597/0.6166, allocations: 0.7294 MB / 0.5322 GB, free: 5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3319/0.9486, allocations: 18.97 MB / 0.5508 GB, free: 136.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0924/1.041, allocations: 63.4 MB / 0.6127 GB, free: 88.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02758/1.069, allocations: 56.98 MB / 0.6683 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005782/1.074, allocations: 4.114 MB / 0.6723 GB, free: 20.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01701/1.091, allocations: 11.39 MB / 0.6835 GB, free: 9.102 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/1.092, allocations: 69.31 kB / 0.6835 GB, free: 9.023 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.899e-06/1.092, allocations: 3.938 kB / 0.6835 GB, free: 9.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03766/1.129, allocations: 18.12 MB / 0.7012 GB, free: 6.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/1.129, allocations: 90.47 kB / 0.7013 GB, free: 6.668 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009518/1.139, allocations: 5.462 MB / 0.7066 GB, free: 1.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007411/1.14, allocations: 93.7 kB / 0.7067 GB, free: 1.133 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1887/1.328, allocations: 5.882 MB / 0.7125 GB, free: 145.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001596/1.33, allocations: 1.376 MB / 0.7138 GB, free: 144.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002772/1.333, allocations: 1.506 MB / 0.7153 GB, free: 144.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/1.333, allocations: 307.6 kB / 0.7156 GB, free: 144.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005699/1.339, allocations: 3.078 MB / 0.7186 GB, free: 143.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009194/1.348, allocations: 6.752 MB / 0.7252 GB, free: 137.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.362, allocations: 10.59 MB / 0.7355 GB, free: 129.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003061/1.362, allocations: 35.56 kB / 0.7356 GB, free: 129.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02038/1.382, allocations: 10.79 MB / 0.7461 GB, free: 125.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/1.383, allocations: 61.84 kB / 0.7462 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000307/1.383, allocations: 126.6 kB / 0.7463 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/1.386, allocations: 0.9838 MB / 0.7472 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006268/1.392, allocations: 1.816 MB / 0.749 GB, free: 124.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009692/1.402, allocations: 10.26 MB / 0.759 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006753/1.408, allocations: 441 kB / 0.7595 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001372/1.41, allocations: 415.3 kB / 0.7599 GB, free: 117.5 MB / 462.1 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.008685/1.418, allocations: 4.463 MB / 0.7642 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/1.42, allocations: 0.5406 MB / 0.7647 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01223/1.433, allocations: 6.519 MB / 0.7711 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/1.433, allocations: 40 kB / 0.7711 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/1.433, allocations: 8 kB / 0.7712 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.7e-05/1.433, allocations: 22.7 kB / 0.7712 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02584/1.459, allocations: 15.97 MB / 0.7868 GB, free: 95.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/1.459, allocations: 384 / 0.7868 GB, free: 95.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002887/1.461, allocations: 0.7567 MB / 0.7875 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001955/1.463, allocations: 0.7991 MB / 0.7883 GB, free: 93.97 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002776/1.464, allocations: 79.98 kB / 0.7884 GB, free: 93.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008187/1.472, allocations: 9.354 MB / 0.7975 GB, free: 84.14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.472, allocations: 7.938 kB / 0.7975 GB, free: 84.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01184/1.484, allocations: 9.523 MB / 0.8068 GB, free: 74.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.486, allocations: 1.072 MB / 0.8079 GB, free: 73.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007924/1.487, allocations: 71.98 kB / 0.8079 GB, free: 73.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/1.489, allocations: 223.8 kB / 0.8081 GB, free: 73.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004863/1.49, allocations: 262.7 kB / 0.8084 GB, free: 72.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/1.49, allocations: 112 kB / 0.8085 GB, free: 72.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004535/1.495, allocations: 3.6 MB / 0.812 GB, free: 69.17 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.495, allocations: 4 kB / 0.812 GB, free: 69.17 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006318/1.501, allocations: 1.988 MB / 0.814 GB, free: 67.18 MB / 462.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%), (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.0005273/1.502, allocations: 253.5 kB / 0.8142 GB, free: 66.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02681/1.528, allocations: 13.52 MB / 0.8274 GB, free: 53.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.528, allocations: 0 / 0.8274 GB, free: 53.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005515/1.534, allocations: 3.534 MB / 0.8309 GB, free: 49.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007879/1.542, allocations: 1.314 MB / 0.8321 GB, free: 48.51 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03215/1.574, allocations: 21 MB / 0.8526 GB, free: 27.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00799/1.582, allocations: 7.59 MB / 0.8601 GB, free: 19.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006503/1.589, allocations: 2.359 MB / 0.8624 GB, free: 17.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.59, allocations: 435.3 kB / 0.8628 GB, free: 17.06 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/1.59, allocations: 0 / 0.8628 GB, free: 17.06 MB / 462.1 MB Notification: Performance of Templates: time 0.3156/1.905, allocations: 78.4 MB / 0.9393 GB, free: 95.24 MB / 462.1 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/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