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.001357/0.001357, allocations: 109.3 kB / 17.73 MB, free: 5.32 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.001535/0.001536, allocations: 192.2 kB / 18.67 MB, free: 4.387 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.337/1.337, allocations: 205.1 MB / 224.5 MB, free: 12.27 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.001283/0.001283, allocations: 47.92 kB / 328.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07924/0.08053, allocations: 46.63 MB / 375.2 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2102/0.2908, allocations: 40.01 MB / 415.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02579/0.3166, allocations: 10.55 MB / 425.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01203/0.3287, allocations: 261 kB / 426 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02279/0.3516, allocations: 8.546 MB / 434.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/0.3659, allocations: 3.633 MB / 438.2 MB, free: 408 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008076/0.374, allocations: 2.39 MB / 440.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01888/0.3929, allocations: 13.42 MB / 454 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04844/0.4414, allocations: 25.36 MB / 479.4 MB, free: 7.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01292/0.4544, allocations: 7.032 MB / 486.4 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01422/0.4686, allocations: 8.051 MB / 494.5 MB, free: 7.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006359/0.475, allocations: 2 MB / 496.5 MB, free: 5.891 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009805/0.4849, allocations: 2.371 MB / 498.8 MB, free: 3.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008416/0.4933, allocations: 4.154 MB / 0.4912 GB, free: 15.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01682/0.5102, allocations: 7.832 MB / 0.4988 GB, free: 7.492 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03415/0.5443, allocations: 26.49 MB / 0.5247 GB, free: 12.92 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.5444, allocations: 3.938 kB / 0.5247 GB, free: 12.91 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5444, allocations: 0 / 0.5247 GB, free: 12.91 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000912/0.5453, allocations: 0 / 0.5247 GB, free: 12.91 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.04765/0.593, allocations: 15.9 MB / 0.5402 GB, free: 12.88 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.593, allocations: 8.031 kB / 0.5402 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05215/0.6452, allocations: 9.184 MB / 0.5492 GB, free: 3.672 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3524/0.9976, allocations: 7.526 MB / 0.5566 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007766/0.9984, allocations: 0.9454 MB / 0.5575 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00403/1.002, allocations: 1.238 MB / 0.5587 GB, free: 132.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04358/1.046, allocations: 20.15 MB / 0.5784 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003374/1.046, allocations: 20.67 kB / 0.5784 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002008/1.048, allocations: 0.5128 MB / 0.5789 GB, free: 124.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005406/1.049, allocations: 0.738 MB / 0.5796 GB, free: 124 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03006/1.079, allocations: 18.98 MB / 0.5981 GB, free: 111.8 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08353/1.163, allocations: 62.82 MB / 0.6595 GB, free: 48.55 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03118/1.194, allocations: 56.98 MB / 0.7151 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006619/1.201, allocations: 4.09 MB / 0.7191 GB, free: 12.58 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01814/1.219, allocations: 11.37 MB / 0.7302 GB, free: 1.371 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.661e-05/1.219, allocations: 73.31 kB / 0.7303 GB, free: 1.289 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 4.759e-06/1.219, allocations: 0 / 0.7303 GB, free: 1.289 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2374/1.456, allocations: 18.3 MB / 0.7482 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/1.456, allocations: 91.22 kB / 0.7483 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008937/1.465, allocations: 5.471 MB / 0.7536 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000677/1.466, allocations: 87.67 kB / 0.7537 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003436/1.469, allocations: 6.1 MB / 0.7596 GB, free: 162.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001531/1.471, allocations: 1.438 MB / 0.761 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0022/1.473, allocations: 1.515 MB / 0.7625 GB, free: 160.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.421e-05/1.473, allocations: 306.8 kB / 0.7628 GB, free: 160.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004591/1.478, allocations: 3.084 MB / 0.7658 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006336/1.484, allocations: 6.761 MB / 0.7724 GB, free: 153 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/1.497, allocations: 10.58 MB / 0.7828 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001968/1.497, allocations: 36.17 kB / 0.7828 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01809/1.515, allocations: 10.83 MB / 0.7934 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.818e-05/1.515, allocations: 60.81 kB / 0.7934 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001544/1.515, allocations: 123 kB / 0.7936 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002211/1.518, allocations: 0.9714 MB / 0.7945 GB, free: 140.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005923/1.523, allocations: 1.814 MB / 0.7963 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00973/1.533, allocations: 10.25 MB / 0.8063 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006067/1.539, allocations: 449.9 kB / 0.8067 GB, free: 132.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/1.54, allocations: 421.4 kB / 0.8071 GB, free: 132.6 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.006968/1.547, allocations: 4.454 MB / 0.8115 GB, free: 130.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.549, allocations: 0.5701 MB / 0.812 GB, free: 130.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00999/1.559, allocations: 6.519 MB / 0.8184 GB, free: 126.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/1.559, allocations: 43.66 kB / 0.8184 GB, free: 126.5 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/1.559, allocations: 8 kB / 0.8184 GB, free: 126.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.405e-05/1.559, allocations: 27.39 kB / 0.8185 GB, free: 126.5 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02282/1.582, allocations: 15.94 MB / 0.834 GB, free: 112.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/1.582, allocations: 4 kB / 0.834 GB, free: 112.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002936/1.585, allocations: 0.756 MB / 0.8348 GB, free: 111.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/1.587, allocations: 0.7923 MB / 0.8355 GB, free: 110.9 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/1.587, allocations: 91.91 kB / 0.8356 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008031/1.595, allocations: 9.341 MB / 0.8448 GB, free: 101 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/1.595, allocations: 7.656 kB / 0.8448 GB, free: 101 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.606, allocations: 9.565 MB / 0.8541 GB, free: 91.37 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002182/1.609, allocations: 1.102 MB / 0.8552 GB, free: 90.25 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007048/1.609, allocations: 72 kB / 0.8552 GB, free: 90.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002261/1.612, allocations: 219.8 kB / 0.8555 GB, free: 89.96 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000508/1.612, allocations: 258.8 kB / 0.8557 GB, free: 89.71 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002363/1.612, allocations: 119.9 kB / 0.8558 GB, free: 89.59 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004327/1.617, allocations: 3.603 MB / 0.8593 GB, free: 86.01 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.9e-07/1.617, allocations: 0 / 0.8593 GB, free: 86.01 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006348/1.623, allocations: 1.984 MB / 0.8613 GB, free: 84.03 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.0005484/1.624, allocations: 261.8 kB / 0.8615 GB, free: 83.77 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01031/1.634, allocations: 8.076 MB / 0.8694 GB, free: 75.63 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/1.634, allocations: 1.422 kB / 0.8694 GB, free: 75.63 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004421/1.638, allocations: 3.544 MB / 0.8729 GB, free: 72.01 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006017/1.644, allocations: 1.327 MB / 0.8742 GB, free: 70.7 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02922/1.674, allocations: 21.06 MB / 0.8947 GB, free: 49.58 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006181/1.68, allocations: 7.598 MB / 0.9022 GB, free: 41.93 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005455/1.685, allocations: 2.359 MB / 0.9045 GB, free: 39.57 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/1.687, allocations: 431.3 kB / 0.9049 GB, free: 39.14 MB / 0.5138 GB Notification: Performance of SimCode: time 1.713e-06/1.687, allocations: 0 / 0.9049 GB, free: 39.14 MB / 0.5138 GB Notification: Performance of Templates: time 0.3239/2.01, allocations: 73.82 MB / 0.977 GB, free: 141.2 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