Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007781/0.0007779, allocations: 99.41 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008272/0.0008273, allocations: 197.2 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 227.7 MB / 246.4 MB, free: 9.816 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002124/0.0002124, allocations: 4 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1202, allocations: 51.53 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01176/0.132, allocations: 9.663 MB / 368.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008491/0.1405, allocations: 3.468 MB / 371.8 MB, free: 248 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.1426, allocations: 59.75 kB / 371.8 MB, free: 188 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2118/0.3544, allocations: 0.641 MB / 372.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003325/0.3578, allocations: 0.7343 MB / 373.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.359, allocations: 288.5 kB / 373.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005211/0.3642, allocations: 2.96 MB / 376.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002814/0.367, allocations: 1.859 MB / 378.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002562/0.3696, allocations: 1.018 MB / 379.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003158/0.3728, allocations: 1.41 MB / 380.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005473/0.3734, allocations: 151.7 kB / 380.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.3746, allocations: 230.1 kB / 381.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.3756, allocations: 0.803 MB / 381.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.3769, allocations: 0.565 MB / 382.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004826/0.3817, allocations: 3.928 MB / 386.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3817, allocations: 1.875 kB / 386.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3817, allocations: 0 / 386.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001279/0.3819, allocations: 5.219 kB / 386.4 MB, free: 6.98 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007312/0.3892, allocations: 2.892 MB / 389.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.3893, allocations: 9.031 kB / 389.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001787/0.3911, allocations: 350.8 kB / 389.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003541/0.3946, allocations: 1.723 MB / 391.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.3948, allocations: 196.3 kB / 391.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003997/0.3952, allocations: 245 kB / 391.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007339/0.4026, allocations: 3.268 MB / 395.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-05/0.4027, allocations: 6.5 kB / 395.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002514/0.403, allocations: 103.7 kB / 395.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/0.4032, allocations: 120.8 kB / 395.3 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005566/0.4088, allocations: 2.736 MB / 398 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/0.4277, allocations: 10.52 MB / 408.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.4296, allocations: 1.354 MB / 409.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.4309, allocations: 0.7948 MB / 410.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003212/0.4313, allocations: 202.1 kB / 410.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.4313, allocations: 47.55 kB / 411 MB, free: 5.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.587e-06/0.4313, allocations: 3.938 kB / 411 MB, free: 5.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01553/0.4469, allocations: 6.943 MB / 417.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.447, allocations: 68.36 kB / 418 MB, free: 13.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003295/0.4503, allocations: 1.782 MB / 419.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.4504, allocations: 49.7 kB / 419.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.4515, allocations: 1.273 MB / 421.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/0.4519, allocations: 427.4 kB / 421.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.253e-05/0.452, allocations: 28 kB / 421.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.4522, allocations: 369.9 kB / 421.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.4533, allocations: 0.7722 MB / 422.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.4551, allocations: 1.288 MB / 423.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.4567, allocations: 0.9784 MB / 424.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.4567, allocations: 4 kB / 424.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004215/0.4609, allocations: 2.474 MB / 427.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.4609, allocations: 12 kB / 427.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.461, allocations: 16 kB / 427.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000601/0.4616, allocations: 247.5 kB / 427.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.463, allocations: 419.3 kB / 428.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/0.4655, allocations: 3.005 MB / 431.1 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.4674, allocations: 131.7 kB / 431.2 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.4676, allocations: 68 kB / 431.3 MB, free: 32 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.4697, allocations: 0.8212 MB / 432.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/0.4701, allocations: 185.8 kB / 432.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.4734, allocations: 2.035 MB / 434.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.4735, allocations: 15.98 kB / 434.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4735, allocations: 0 / 434.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4735, allocations: 7.922 kB / 434.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007541/0.481, allocations: 4.761 MB / 439.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.4811, allocations: 4 kB / 439.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.4822, allocations: 267.5 kB / 439.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004935/0.4827, allocations: 207.5 kB / 439.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-05/0.4828, allocations: 27.98 kB / 439.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00243/0.4852, allocations: 2.979 MB / 442.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4852, allocations: 0 / 442.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004797/0.49, allocations: 3.122 MB / 445.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.4911, allocations: 438.6 kB / 446.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.4913, allocations: 24 kB / 446.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008729/0.4922, allocations: 99.86 kB / 446.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4924, allocations: 84.84 kB / 446.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.337e-05/0.4924, allocations: 32 kB / 446.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002153/0.4946, allocations: 1.212 MB / 447.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4946, allocations: 0 / 447.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001976/0.4966, allocations: 499.9 kB / 448.1 MB, free: 14.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003239/0.4969, allocations: 150.2 kB / 448.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003618/0.5006, allocations: 2.339 MB / 450.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5006, allocations: 0 / 450.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.5023, allocations: 1.346 MB / 451.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.5045, allocations: 482.4 kB / 452.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009643/0.5142, allocations: 5.8 MB / 458.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/0.5162, allocations: 2.017 MB / 460.2 MB, free: 2.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001828/0.518, allocations: 0.4921 MB / 460.7 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004298/0.5184, allocations: 139.4 kB / 460.8 MB, free: 1.82 MB / 366.1 MB Notification: Performance of SimCode: time 1.723e-06/0.5184, allocations: 0 / 460.8 MB, free: 1.82 MB / 366.1 MB Notification: Performance of Templates: time 0.04879/0.5672, allocations: 23.89 MB / 484.7 MB, free: 10.18 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches