Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001476/0.001476, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001836/0.001836, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 55.91 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.272, allocations: 50.55 MB / 409.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01592/0.288, allocations: 15.79 MB / 425.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009652/0.2977, allocations: 5.343 MB / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004225/0.302, allocations: 99.62 kB / 430.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003831/0.3058, allocations: 1.142 MB / 431.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004364/0.3102, allocations: 1.278 MB / 432.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.3126, allocations: 0.9235 MB / 433.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00475/0.3173, allocations: 3.655 MB / 437.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00469/0.3221, allocations: 3.306 MB / 440.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002714/0.3248, allocations: 1.756 MB / 442.6 MB, free: 76 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003387/0.3282, allocations: 2.121 MB / 444.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001545/0.3297, allocations: 476 kB / 445.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.3316, allocations: 0.7029 MB / 445.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000976/0.3326, allocations: 1.145 MB / 447 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001922/0.3345, allocations: 2.046 MB / 449 MB, free: 9.574 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005621/0.3401, allocations: 6.305 MB / 455.3 MB, free: 3.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3402, allocations: 0 / 455.3 MB, free: 3.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3402, allocations: 0 / 455.3 MB, free: 3.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.407e-05/0.3403, allocations: 4 kB / 455.4 MB, free: 3.246 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008499/0.3488, allocations: 4.273 MB / 459.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3488, allocations: 8.031 kB / 459.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002665/0.3515, allocations: 0.625 MB / 460.3 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003482/0.355, allocations: 2.292 MB / 462.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.3551, allocations: 234.7 kB / 462.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004233/0.3556, allocations: 312.1 kB / 463.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006011/0.3616, allocations: 4.055 MB / 467.1 MB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.754e-05/0.3617, allocations: 3.906 kB / 467.1 MB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000262/0.362, allocations: 128 kB / 467.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.3621, allocations: 146.2 kB / 467.4 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005305/0.3674, allocations: 3.386 MB / 470.8 MB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01818/0.3856, allocations: 13.35 MB / 484.1 MB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004164/0.3898, allocations: 4.267 MB / 488.4 MB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.3913, allocations: 1.024 MB / 489.4 MB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004336/0.3957, allocations: 2.835 MB / 492.3 MB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.3957, allocations: 51.5 kB / 492.3 MB, free: 12.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.345e-06/0.3957, allocations: 4 kB / 492.3 MB, free: 12.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01104/0.4068, allocations: 5.999 MB / 498.3 MB, free: 6.809 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.4068, allocations: 68.72 kB / 498.4 MB, free: 6.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.4094, allocations: 1.902 MB / 0.4886 GB, free: 4.781 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.237e-05/0.4095, allocations: 45.7 kB / 0.4886 GB, free: 4.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.4105, allocations: 1.516 MB / 0.4901 GB, free: 3.195 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000367/0.4109, allocations: 0.4891 MB / 0.4906 GB, free: 2.699 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004894/0.4114, allocations: 331.2 kB / 0.4909 GB, free: 2.367 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.753e-05/0.4115, allocations: 301.1 kB / 0.4912 GB, free: 2.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.4126, allocations: 0.773 MB / 0.4919 GB, free: 1.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.4142, allocations: 1.367 MB / 0.4933 GB, free: 15.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002923/0.4171, allocations: 2.32 MB / 0.4955 GB, free: 13.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.4171, allocations: 11.94 kB / 0.4955 GB, free: 13.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003832/0.421, allocations: 2.474 MB / 0.498 GB, free: 10.57 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.421, allocations: 12 kB / 0.498 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.421, allocations: 20 kB / 0.498 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003823/0.4214, allocations: 126.8 kB / 0.4981 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/0.4232, allocations: 487.2 kB / 0.4986 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.4243, allocations: 1.402 MB / 0.4999 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.4258, allocations: 116 kB / 0.5 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4259, allocations: 83.94 kB / 0.5001 GB, free: 8.191 MB / 430.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.001786/0.4277, allocations: 0.9812 MB / 0.5011 GB, free: 7.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.428, allocations: 205.5 kB / 0.5013 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.4311, allocations: 1.969 MB / 0.5032 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.4312, allocations: 12 kB / 0.5032 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4312, allocations: 0 / 0.5032 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4312, allocations: 11.97 kB / 0.5032 GB, free: 4.984 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007117/0.4383, allocations: 4.999 MB / 0.5081 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4383, allocations: 4 kB / 0.5081 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.4396, allocations: 307.7 kB / 0.5084 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.4399, allocations: 102.5 kB / 0.5085 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.268e-05/0.44, allocations: 24 kB / 0.5085 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008489/0.4409, allocations: 1.379 MB / 0.5099 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4409, allocations: 4 kB / 0.5099 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004157/0.445, allocations: 3.094 MB / 0.5129 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007545/0.4458, allocations: 458.5 kB / 0.5133 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002042/0.446, allocations: 24 kB / 0.5134 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008949/0.4469, allocations: 79.91 kB / 0.5134 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.4471, allocations: 89.06 kB / 0.5135 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.98e-05/0.4472, allocations: 48.05 kB / 0.5136 GB, free: 10.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001787/0.449, allocations: 1.294 MB / 0.5148 GB, free: 8.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.449, allocations: 0 / 0.5148 GB, free: 8.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001748/0.4508, allocations: 0.5352 MB / 0.5154 GB, free: 8.211 MB / 446.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.0003275/0.4511, allocations: 175 kB / 0.5155 GB, free: 8.027 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003196/0.4543, allocations: 2.216 MB / 0.5177 GB, free: 5.758 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4543, allocations: 0 / 0.5177 GB, free: 5.758 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.4558, allocations: 1.179 MB / 0.5188 GB, free: 4.527 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.4578, allocations: 0.5197 MB / 0.5193 GB, free: 4.016 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00878/0.4666, allocations: 5.582 MB / 0.5248 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/0.4686, allocations: 2.271 MB / 0.527 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001414/0.47, allocations: 0.5094 MB / 0.5275 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/0.4705, allocations: 159.4 kB / 0.5277 GB, free: 11.4 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4705, allocations: 3.938 kB / 0.5277 GB, free: 11.39 MB / 462.1 MB Notification: Performance of Templates: time 0.2445/0.715, allocations: 26.88 MB / 0.5539 GB, free: 118.9 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches