Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 197.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 229.5 MB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007867/0.0007867, allocations: 103.5 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002314/0.0002315, allocations: 8 kB / 360.7 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.1999, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0115/0.2115, allocations: 13.92 MB / 426 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00928/0.2208, allocations: 6.805 MB / 432.8 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002922/0.2238, allocations: 91.62 kB / 432.9 MB, free: 4.609 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003077/0.2269, allocations: 0.9443 MB / 433.8 MB, free: 3.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004555/0.2315, allocations: 1.409 MB / 435.2 MB, free: 2.172 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002866/0.2344, allocations: 1.211 MB / 436.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006503/0.2409, allocations: 3.814 MB / 440.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005186/0.2461, allocations: 2.748 MB / 443 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002257/0.2484, allocations: 1.237 MB / 444.3 MB, free: 8.977 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.2512, allocations: 1.645 MB / 445.9 MB, free: 7.324 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007539/0.2519, allocations: 192 kB / 446.1 MB, free: 7.137 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001636/0.2536, allocations: 427.7 kB / 446.5 MB, free: 6.719 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.2548, allocations: 0.7977 MB / 447.3 MB, free: 5.918 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002791/0.2576, allocations: 1.692 MB / 449 MB, free: 4.211 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006436/0.264, allocations: 5.894 MB / 454.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2641, allocations: 0 / 454.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2641, allocations: 0 / 454.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002147/0.2643, allocations: 0 / 454.9 MB, free: 14.3 MB / 330.7 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.009206/0.2735, allocations: 3.603 MB / 458.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.2736, allocations: 16.02 kB / 458.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00329/0.2769, allocations: 0.6212 MB / 459.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004602/0.2815, allocations: 2.207 MB / 461.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/0.2818, allocations: 246.8 kB / 461.6 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007657/0.2826, allocations: 315.8 kB / 461.9 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007266/0.2899, allocations: 4.027 MB / 465.9 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-05/0.29, allocations: 3.906 kB / 465.9 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002657/0.2903, allocations: 131.9 kB / 466 MB, free: 2.941 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.2904, allocations: 142.2 kB / 466.2 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006571/0.297, allocations: 3.374 MB / 469.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02106/0.3181, allocations: 13.54 MB / 483.1 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004061/0.3222, allocations: 4.263 MB / 487.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001634/0.3239, allocations: 1.039 MB / 488.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004713/0.3286, allocations: 2.878 MB / 491.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.3287, allocations: 39.56 kB / 491.3 MB, free: 8.477 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.554e-06/0.3287, allocations: 0 / 491.3 MB, free: 8.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.01104/0.3397, allocations: 5.983 MB / 497.3 MB, free: 2.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.3398, allocations: 68.72 kB / 497.4 MB, free: 2.324 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/0.3425, allocations: 1.89 MB / 499.3 MB, free: 400 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.3426, allocations: 57.64 kB / 499.3 MB, free: 336 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009777/0.3436, allocations: 1.509 MB / 0.4891 GB, free: 14.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003599/0.344, allocations: 492.9 kB / 0.4896 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.485e-05/0.3441, allocations: 40 kB / 0.4896 GB, free: 14.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3442, allocations: 381.9 kB / 0.49 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.3454, allocations: 0.7613 MB / 0.4907 GB, free: 13.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/0.347, allocations: 1.371 MB / 0.492 GB, free: 11.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002953/0.3499, allocations: 2.308 MB / 0.4943 GB, free: 8.918 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.35, allocations: 4 kB / 0.4943 GB, free: 8.914 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003995/0.354, allocations: 2.469 MB / 0.4967 GB, free: 6.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.354, allocations: 12.62 kB / 0.4967 GB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/0.3541, allocations: 24 kB / 0.4967 GB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.3544, allocations: 126.4 kB / 0.4969 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.3561, allocations: 479.2 kB / 0.4973 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009468/0.3571, allocations: 1.315 MB / 0.4986 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.3585, allocations: 112 kB / 0.4987 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.3586, allocations: 87.98 kB / 0.4988 GB, free: 4.141 MB / 378.7 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.001599/0.3602, allocations: 0.9786 MB / 0.4998 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/0.3606, allocations: 209.4 kB / 0.5 GB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003201/0.3638, allocations: 1.962 MB / 0.5019 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.3638, allocations: 12 kB / 0.5019 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3638, allocations: 7.938 kB / 0.5019 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.3638, allocations: 3.984 kB / 0.5019 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1699/0.5337, allocations: 4.989 MB / 0.5068 GB, free: 87.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.5338, allocations: 6.5 kB / 0.5068 GB, free: 87.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/0.5351, allocations: 307.2 kB / 0.5071 GB, free: 87.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/0.5354, allocations: 98.7 kB / 0.5072 GB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.789e-05/0.5355, allocations: 32.19 kB / 0.5072 GB, free: 87.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006971/0.5362, allocations: 1.273 MB / 0.5084 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.5362, allocations: 2.281 kB / 0.5084 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.5402, allocations: 3.079 MB / 0.5114 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008502/0.5411, allocations: 471.5 kB / 0.5119 GB, free: 84.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.5413, allocations: 30.16 kB / 0.5119 GB, free: 84.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009047/0.5422, allocations: 75.55 kB / 0.512 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5424, allocations: 94.7 kB / 0.5121 GB, free: 84.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.449e-05/0.5425, allocations: 35.5 kB / 0.5121 GB, free: 84.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00204/0.5445, allocations: 1.28 MB / 0.5134 GB, free: 83.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5446, allocations: 0 / 0.5134 GB, free: 83.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001619/0.5462, allocations: 0.5406 MB / 0.5139 GB, free: 83.7 MB / 378.7 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.0003049/0.5465, allocations: 186.2 kB / 0.5141 GB, free: 83.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002863/0.5494, allocations: 2.209 MB / 0.5162 GB, free: 82.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5494, allocations: 0 / 0.5162 GB, free: 82.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.5506, allocations: 1.176 MB / 0.5174 GB, free: 81.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.5532, allocations: 0.4915 MB / 0.5179 GB, free: 81.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00792/0.5612, allocations: 7.093 MB / 0.5248 GB, free: 76.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/0.5626, allocations: 2.267 MB / 0.527 GB, free: 74.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001737/0.5643, allocations: 0.5133 MB / 0.5275 GB, free: 74.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004516/0.5648, allocations: 155.4 kB / 0.5276 GB, free: 73.93 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5648, allocations: 3.938 kB / 0.5277 GB, free: 73.93 MB / 378.7 MB Notification: Performance of Templates: time 0.04093/0.6058, allocations: 25.21 MB / 0.5523 GB, free: 49.08 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches