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.001291/0.00129, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001268/0.001268, allocations: 192 kB / 18.63 MB, free: 4.375 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.307/1.307, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 47.14 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.09044, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01604/0.1065, allocations: 15.17 MB / 366.7 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1554/0.262, allocations: 5.087 MB / 371.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002619/0.2646, allocations: 97.72 kB / 371.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003061/0.2677, allocations: 1.068 MB / 372.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00352/0.2713, allocations: 1.269 MB / 374.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.2732, allocations: 0.8877 MB / 375.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004403/0.2777, allocations: 3.619 MB / 378.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003595/0.2813, allocations: 3.309 MB / 382 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002579/0.2839, allocations: 1.716 MB / 383.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002829/0.2867, allocations: 2.059 MB / 385.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000648/0.2874, allocations: 479.2 kB / 386.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.2888, allocations: 0.6826 MB / 387 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007892/0.2896, allocations: 1.148 MB / 388.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001831/0.2914, allocations: 2.044 MB / 390.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004426/0.2958, allocations: 6.265 MB / 396.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.2959, allocations: 0 / 396.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2959, allocations: 0 / 396.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.296, allocations: 0 / 396.4 MB, free: 1.699 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.008576/0.3046, allocations: 4.249 MB / 400.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.3046, allocations: 7.156 kB / 400.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002626/0.3072, allocations: 0.6181 MB / 401.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00403/0.3113, allocations: 2.275 MB / 403.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.3114, allocations: 239.7 kB / 403.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004361/0.3119, allocations: 320.7 kB / 404.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006415/0.3183, allocations: 4.042 MB / 408.1 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.3184, allocations: 11.94 kB / 408.2 MB, free: 7.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002841/0.3187, allocations: 131.6 kB / 408.3 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.3188, allocations: 142.2 kB / 408.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005491/0.3243, allocations: 3.386 MB / 411.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01742/0.3418, allocations: 13.15 MB / 425 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003691/0.3455, allocations: 3.966 MB / 428.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.347, allocations: 1.004 MB / 429.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004144/0.3512, allocations: 2.653 MB / 432.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.3512, allocations: 47.5 kB / 432.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.495e-06/0.3512, allocations: 0 / 432.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01046/0.3617, allocations: 5.974 MB / 438.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3617, allocations: 68.7 kB / 438.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002408/0.3642, allocations: 1.896 MB / 440.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/0.3642, allocations: 49.7 kB / 440.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008538/0.3651, allocations: 1.502 MB / 442.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003138/0.3654, allocations: 492.4 kB / 442.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004577/0.3659, allocations: 335.2 kB / 442.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.62e-05/0.366, allocations: 301.1 kB / 443.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.3671, allocations: 0.7691 MB / 444 MB, free: 3.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3686, allocations: 1.381 MB / 445.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/0.3714, allocations: 2.312 MB / 447.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.3714, allocations: 12 kB / 447.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003798/0.3752, allocations: 2.473 MB / 450.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.3752, allocations: 12.75 kB / 450.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.3753, allocations: 20 kB / 450.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003329/0.3756, allocations: 122.5 kB / 450.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/0.3773, allocations: 487.1 kB / 450.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.3784, allocations: 1.41 MB / 452.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.3799, allocations: 111.8 kB / 452.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.3801, allocations: 80 kB / 452.4 MB, free: 9.914 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.001615/0.3817, allocations: 0.9812 MB / 453.4 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003418/0.3821, allocations: 201.5 kB / 453.6 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.3852, allocations: 1.962 MB / 455.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.3852, allocations: 12 kB / 455.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.3852, allocations: 4 kB / 455.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.3852, allocations: 11.91 kB / 455.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007745/0.393, allocations: 4.989 MB / 460.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.393, allocations: 0 / 460.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.3944, allocations: 315.8 kB / 460.9 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002983/0.3947, allocations: 90.52 kB / 460.9 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.782e-05/0.3948, allocations: 32 kB / 461 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009278/0.3957, allocations: 1.369 MB / 462.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.3958, allocations: 11.88 kB / 462.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/0.4002, allocations: 3.086 MB / 465.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.4014, allocations: 450.5 kB / 465.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004183/0.4018, allocations: 28 kB / 465.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4029, allocations: 75.91 kB / 466 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.4031, allocations: 97.12 kB / 466.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.641e-05/0.4032, allocations: 36 kB / 466.1 MB, free: 11.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002112/0.4053, allocations: 1.293 MB / 467.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4053, allocations: 0 / 467.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001796/0.4071, allocations: 0.5273 MB / 467.9 MB, free: 10.01 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.0003375/0.4075, allocations: 174.4 kB / 468.1 MB, free: 9.832 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.4109, allocations: 2.221 MB / 470.3 MB, free: 7.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.4109, allocations: 4 kB / 470.3 MB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.4124, allocations: 1.174 MB / 471.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.4149, allocations: 0.5076 MB / 472 MB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.4258, allocations: 5.576 MB / 477.6 MB, free: 204 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002825/0.4286, allocations: 2.259 MB / 479.8 MB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001819/0.4305, allocations: 0.5132 MB / 480.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005552/0.4311, allocations: 155.4 kB / 480.5 MB, free: 13.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4311, allocations: 0 / 480.5 MB, free: 13.25 MB / 398.1 MB Notification: Performance of Templates: time 0.04713/0.4782, allocations: 26.04 MB / 0.4947 GB, free: 3.531 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 gbode -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