Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001484/0.001484, allocations: 190.9 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 55.7 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1018, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01597/0.1178, allocations: 15.16 MB / 366.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1954/0.3133, allocations: 5.099 MB / 371.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002817/0.3161, allocations: 98.34 kB / 371.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.3193, allocations: 1.067 MB / 372.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00397/0.3233, allocations: 1.264 MB / 374.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.3255, allocations: 0.8948 MB / 375.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004799/0.3303, allocations: 3.616 MB / 378.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003933/0.3342, allocations: 3.322 MB / 382 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003205/0.3374, allocations: 1.719 MB / 383.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004289/0.3417, allocations: 2.051 MB / 385.8 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001296/0.3431, allocations: 480.7 kB / 386.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002285/0.3453, allocations: 0.6834 MB / 386.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001159/0.3465, allocations: 1.15 MB / 388.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002844/0.3494, allocations: 2.04 MB / 390.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006366/0.3558, allocations: 6.269 MB / 396.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3558, allocations: 6.562 kB / 396.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3558, allocations: 0 / 396.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001304/0.3559, allocations: 0 / 396.4 MB, free: 1.676 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01152/0.3674, allocations: 4.24 MB / 400.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3675, allocations: 8.625 kB / 400.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002749/0.3703, allocations: 0.6252 MB / 401.3 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.3743, allocations: 2.275 MB / 403.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.3745, allocations: 236.9 kB / 403.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004242/0.375, allocations: 312.4 kB / 404.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006316/0.3813, allocations: 4.052 MB / 408.1 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.501e-05/0.3814, allocations: 7.938 kB / 408.2 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/0.3816, allocations: 127 kB / 408.3 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.3818, allocations: 150.2 kB / 408.4 MB, free: 7.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00519/0.387, allocations: 3.382 MB / 411.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01755/0.4045, allocations: 13.15 MB / 425 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004313/0.4089, allocations: 3.958 MB / 428.9 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.4105, allocations: 1.002 MB / 429.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004699/0.4152, allocations: 2.649 MB / 432.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.4152, allocations: 47.5 kB / 432.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.304e-06/0.4153, allocations: 0 / 432.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01144/0.4267, allocations: 5.981 MB / 438.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.4268, allocations: 64.72 kB / 438.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002737/0.4295, allocations: 1.897 MB / 440.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.721e-05/0.4296, allocations: 45.7 kB / 440.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009588/0.4306, allocations: 1.501 MB / 442.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000354/0.4309, allocations: 494.9 kB / 442.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004864/0.4314, allocations: 331.2 kB / 442.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.185e-05/0.4315, allocations: 305.1 kB / 443.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.4326, allocations: 0.7691 MB / 444 MB, free: 3.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/0.4342, allocations: 1.373 MB / 445.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002767/0.4369, allocations: 2.323 MB / 447.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.437, allocations: 4 kB / 447.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003715/0.4407, allocations: 2.485 MB / 450.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.4407, allocations: 12 kB / 450.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.209e-05/0.4407, allocations: 20 kB / 450.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003167/0.4411, allocations: 118.5 kB / 450.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.4428, allocations: 491.3 kB / 450.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009654/0.4438, allocations: 1.401 MB / 452.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.4452, allocations: 115.8 kB / 452.3 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.4454, allocations: 80 kB / 452.4 MB, free: 9.902 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001594/0.447, allocations: 0.9852 MB / 453.4 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003013/0.4473, allocations: 205.5 kB / 453.6 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003052/0.4503, allocations: 1.958 MB / 455.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4504, allocations: 12 kB / 455.5 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4504, allocations: 4 kB / 455.5 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.4504, allocations: 11.91 kB / 455.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007467/0.4579, allocations: 4.985 MB / 460.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4579, allocations: 0 / 460.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.4592, allocations: 307.5 kB / 460.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002632/0.4595, allocations: 94.72 kB / 460.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.211e-05/0.4596, allocations: 35.98 kB / 461 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008922/0.4605, allocations: 1.371 MB / 462.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/0.4605, allocations: 15.86 kB / 462.3 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.4647, allocations: 3.078 MB / 465.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000986/0.4657, allocations: 450.5 kB / 465.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002383/0.466, allocations: 32.05 kB / 465.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009092/0.4669, allocations: 83.84 kB / 466 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.467, allocations: 89.06 kB / 466.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.44e-05/0.4671, allocations: 40 kB / 466.1 MB, free: 11.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001798/0.4689, allocations: 1.285 MB / 467.4 MB, free: 10.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4689, allocations: 0 / 467.4 MB, free: 10.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00166/0.4706, allocations: 0.5352 MB / 467.9 MB, free: 9.992 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0002996/0.4709, allocations: 165.5 kB / 468.1 MB, free: 9.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003122/0.474, allocations: 2.217 MB / 470.3 MB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4741, allocations: 4 kB / 470.3 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.4755, allocations: 1.177 MB / 471.5 MB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.4776, allocations: 0.5162 MB / 472 MB, free: 5.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009184/0.4868, allocations: 5.581 MB / 477.6 MB, free: 184 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/0.4889, allocations: 2.259 MB / 479.8 MB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001713/0.4906, allocations: 0.5131 MB / 480.4 MB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/0.491, allocations: 151.4 kB / 480.5 MB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.491, allocations: 4 kB / 480.5 MB, free: 13.23 MB / 398.1 MB Notification: Performance of Templates: time 0.04721/0.5383, allocations: 26.02 MB / 0.4947 GB, free: 3.52 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches