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.0007963/0.0007963, allocations: 92.94 kB / 17.3 MB, free: 6 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.0007425/0.0007425, allocations: 181 kB / 18.21 MB, free: 5.414 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.277/1.277, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004242/0.0004243, allocations: 12 kB / 281.4 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08241, allocations: 47.59 MB / 329 MB, free: 3.734 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03762/0.1201, allocations: 37.73 MB / 366.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02264/0.1428, allocations: 10.35 MB / 377.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007892/0.1507, allocations: 247.1 kB / 377.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007258/0.158, allocations: 2.15 MB / 379.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2/0.3581, allocations: 3.294 MB / 382.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006595/0.3647, allocations: 1.998 MB / 384.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01757/0.3823, allocations: 13.65 MB / 398.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03526/0.4176, allocations: 24.14 MB / 422.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01071/0.4283, allocations: 4.935 MB / 427.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01105/0.4394, allocations: 6.238 MB / 433.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002833/0.4423, allocations: 0.7734 MB / 434.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005299/0.4476, allocations: 1.161 MB / 435.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003271/0.4509, allocations: 2.676 MB / 438.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01057/0.4615, allocations: 6.211 MB / 444.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02523/0.4867, allocations: 24.78 MB / 469.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.4868, allocations: 0 / 469.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4868, allocations: 0 / 469.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006421/0.4874, allocations: 0 / 469.3 MB, free: 1.363 MB / 366.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.03433/0.5218, allocations: 12.85 MB / 482.2 MB, free: 4.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.5218, allocations: 12.03 kB / 482.2 MB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04972/0.5716, allocations: 9.141 MB / 491.3 MB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01496/0.5866, allocations: 7.46 MB / 498.8 MB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001059/0.5877, allocations: 0.9605 MB / 499.7 MB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004224/0.5919, allocations: 1.244 MB / 0.4892 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0504/0.6423, allocations: 20.16 MB / 0.5089 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005634/0.6429, allocations: 23.8 kB / 0.509 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003773/0.6467, allocations: 0.5088 MB / 0.5095 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008951/0.6476, allocations: 0.7332 MB / 0.5102 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04266/0.6903, allocations: 18.98 MB / 0.5287 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2764/0.9667, allocations: 63.62 MB / 0.5908 GB, free: 106.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02896/0.9957, allocations: 56.93 MB / 0.6464 GB, free: 48.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005642/1.001, allocations: 4.125 MB / 0.6505 GB, free: 45.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01659/1.018, allocations: 11.41 MB / 0.6616 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/1.018, allocations: 73.25 kB / 0.6617 GB, free: 34.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.248e-06/1.018, allocations: 3.938 kB / 0.6617 GB, free: 34.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03462/1.053, allocations: 18.18 MB / 0.6794 GB, free: 15.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/1.053, allocations: 94.47 kB / 0.6795 GB, free: 15.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00727/1.06, allocations: 5.462 MB / 0.6849 GB, free: 10.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006011/1.061, allocations: 85.7 kB / 0.6849 GB, free: 10.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002495/1.063, allocations: 5.888 MB / 0.6907 GB, free: 4.277 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001183/1.064, allocations: 1.366 MB / 0.692 GB, free: 2.922 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007404/1.065, allocations: 0.5927 MB / 0.6926 GB, free: 2.324 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.808e-05/1.065, allocations: 305.1 kB / 0.6929 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004352/1.07, allocations: 3.083 MB / 0.6959 GB, free: 14.94 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007331/1.077, allocations: 6.759 MB / 0.7025 GB, free: 6.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2027/1.28, allocations: 10.59 MB / 0.7128 GB, free: 145.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/1.28, allocations: 40.06 kB / 0.7129 GB, free: 145.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02029/1.3, allocations: 10.8 MB / 0.7234 GB, free: 141.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.84e-05/1.3, allocations: 63.28 kB / 0.7235 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002077/1.3, allocations: 126.4 kB / 0.7236 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002349/1.303, allocations: 0.97 MB / 0.7246 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006168/1.309, allocations: 1.813 MB / 0.7263 GB, free: 140.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00936/1.318, allocations: 9.561 MB / 0.7357 GB, free: 134.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005449/1.324, allocations: 440 kB / 0.7361 GB, free: 134.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009184/1.325, allocations: 421 kB / 0.7365 GB, free: 134.3 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.007046/1.332, allocations: 4.459 MB / 0.7408 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001027/1.333, allocations: 0.5391 MB / 0.7414 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009625/1.342, allocations: 6.528 MB / 0.7477 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/1.343, allocations: 38.97 kB / 0.7478 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/1.343, allocations: 11.72 kB / 0.7478 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.395e-05/1.343, allocations: 21.84 kB / 0.7478 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/1.366, allocations: 15.97 MB / 0.7634 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/1.366, allocations: 4 kB / 0.7634 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002921/1.369, allocations: 0.7571 MB / 0.7641 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/1.371, allocations: 0.7884 MB / 0.7649 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002422/1.371, allocations: 87.97 kB / 0.765 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007893/1.379, allocations: 8.671 MB / 0.7735 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.379, allocations: 5.562 kB / 0.7735 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/1.391, allocations: 9.546 MB / 0.7828 GB, free: 99.08 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002325/1.393, allocations: 1.099 MB / 0.7839 GB, free: 97.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009582/1.394, allocations: 72 kB / 0.7839 GB, free: 97.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002492/1.396, allocations: 228.6 kB / 0.7842 GB, free: 97.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000519/1.397, allocations: 258.8 kB / 0.7844 GB, free: 97.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002271/1.397, allocations: 116 kB / 0.7845 GB, free: 97.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005381/1.403, allocations: 3.603 MB / 0.788 GB, free: 93.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.403, allocations: 6.891 kB / 0.788 GB, free: 93.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007348/1.41, allocations: 1.986 MB / 0.79 GB, free: 91.73 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.0006645/1.411, allocations: 247.4 kB / 0.7902 GB, free: 91.49 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01068/1.421, allocations: 8.053 MB / 0.7981 GB, free: 83.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/1.421, allocations: 0 / 0.7981 GB, free: 83.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005211/1.427, allocations: 3.545 MB / 0.8015 GB, free: 79.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008911/1.436, allocations: 1.236 MB / 0.8027 GB, free: 78.53 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03778/1.473, allocations: 26.33 MB / 0.8285 GB, free: 52.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009479/1.483, allocations: 7.594 MB / 0.8359 GB, free: 44.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006768/1.49, allocations: 2.363 MB / 0.8382 GB, free: 42.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.491, allocations: 431.3 kB / 0.8386 GB, free: 41.73 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/1.491, allocations: 0 / 0.8386 GB, free: 41.73 MB / 462.1 MB Notification: Performance of Templates: time 0.3132/1.804, allocations: 74.75 MB / 0.9116 GB, free: 119.3 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","../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