Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 115.7 kB / 17.74 MB, free: 5.332 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.001557/0.001557, allocations: 185.6 kB / 18.67 MB, free: 4.41 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 55.91 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2243, allocations: 49.42 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01161/0.2359, allocations: 11.42 MB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005874/0.2418, allocations: 3.536 MB / 416.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.2432, allocations: 67.69 kB / 416.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.2453, allocations: 0.8268 MB / 417.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002434/0.2478, allocations: 0.9279 MB / 418.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009596/0.2487, allocations: 439.3 kB / 418.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003762/0.2525, allocations: 3.755 MB / 422.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00293/0.2555, allocations: 2.857 MB / 425.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.2574, allocations: 1.666 MB / 426.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.2598, allocations: 1.961 MB / 428.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005494/0.2603, allocations: 420 kB / 429.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009187/0.2612, allocations: 0.4959 MB / 429.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.2623, allocations: 1.204 MB / 431 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00185/0.2641, allocations: 1.933 MB / 432.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004625/0.2688, allocations: 5.547 MB / 438.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.2688, allocations: 3.984 kB / 438.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.2688, allocations: 0 / 438.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.733e-05/0.2689, allocations: 3.938 kB / 438.5 MB, free: 3.609 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006608/0.2755, allocations: 3.813 MB / 442.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.2756, allocations: 8.031 kB / 442.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008918/0.2765, allocations: 388.6 kB / 442.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003008/0.2795, allocations: 2.055 MB / 444.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.2796, allocations: 210.1 kB / 444.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003825/0.28, allocations: 291.8 kB / 445.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/0.2859, allocations: 3.864 MB / 449.1 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.934e-05/0.2859, allocations: 11.94 kB / 449.1 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/0.2862, allocations: 120 kB / 449.2 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.2863, allocations: 117.5 kB / 449.3 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004943/0.2913, allocations: 3.262 MB / 452.6 MB, free: 5.262 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/0.3077, allocations: 11.77 MB / 464.3 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003029/0.3107, allocations: 3.668 MB / 468 MB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001996/0.3127, allocations: 1.246 MB / 469.3 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002393/0.313, allocations: 132.2 kB / 469.4 MB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.313, allocations: 51.81 kB / 469.4 MB, free: 3.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.397e-06/0.313, allocations: 0 / 469.4 MB, free: 3.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01326/0.3263, allocations: 7.316 MB / 476.8 MB, free: 12.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.3264, allocations: 72.72 kB / 476.8 MB, free: 11.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002772/0.3292, allocations: 2.06 MB / 478.9 MB, free: 9.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.3293, allocations: 49.7 kB / 478.9 MB, free: 9.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009024/0.3302, allocations: 1.366 MB / 480.3 MB, free: 8.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003788/0.3306, allocations: 0.5083 MB / 480.8 MB, free: 7.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000497/0.3311, allocations: 347.2 kB / 481.2 MB, free: 7.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.946e-05/0.3312, allocations: 309.1 kB / 481.5 MB, free: 7.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.3324, allocations: 0.8627 MB / 482.3 MB, free: 6.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.334, allocations: 1.373 MB / 483.7 MB, free: 4.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/0.3368, allocations: 2.322 MB / 486 MB, free: 2.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.3368, allocations: 4 kB / 486 MB, free: 2.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005218/0.3421, allocations: 3.285 MB / 489.3 MB, free: 14.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.3421, allocations: 12 kB / 489.3 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/0.3421, allocations: 12 kB / 489.3 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/0.3443, allocations: 0.8527 MB / 490.2 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.3455, allocations: 335.4 kB / 490.5 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01675/0.3623, allocations: 20.59 MB / 0.4991 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.3639, allocations: 95.78 kB / 0.4992 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.3641, allocations: 79.98 kB / 0.4993 GB, free: 7.41 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001476/0.3656, allocations: 0.9374 MB / 0.5002 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003657/0.3659, allocations: 217.4 kB / 0.5004 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/0.3701, allocations: 2.629 MB / 0.503 GB, free: 3.555 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.3701, allocations: 20 kB / 0.503 GB, free: 3.535 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.3701, allocations: 4 kB / 0.503 GB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.3702, allocations: 7.969 kB / 0.503 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008728/0.3789, allocations: 5.867 MB / 0.5087 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.3789, allocations: 4 kB / 0.5087 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000764/0.3797, allocations: 199.6 kB / 0.5089 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.3815, allocations: 0.7308 MB / 0.5096 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.944e-05/0.3816, allocations: 39.98 kB / 0.5097 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01434/0.3959, allocations: 18.15 MB / 0.5274 GB, free: 8.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.396, allocations: 11.94 kB / 0.5274 GB, free: 8.918 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005515/0.4015, allocations: 3.799 MB / 0.5311 GB, free: 5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008797/0.4024, allocations: 486.3 kB / 0.5316 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000281/0.4027, allocations: 32 kB / 0.5316 GB, free: 4.473 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.4037, allocations: 103.9 kB / 0.5317 GB, free: 4.371 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/0.4041, allocations: 145 kB / 0.5319 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.774e-05/0.4042, allocations: 40 kB / 0.5319 GB, free: 4.191 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001939/0.4061, allocations: 1.408 MB / 0.5333 GB, free: 2.762 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4061, allocations: 0 / 0.5333 GB, free: 2.762 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002163/0.4083, allocations: 0.664 MB / 0.5339 GB, free: 2.098 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,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.0003721/0.4087, allocations: 204.4 kB / 0.5341 GB, free: 1.887 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1761/0.5848, allocations: 3.44 MB / 0.5375 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.5848, allocations: 1.281 kB / 0.5375 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00277/0.5876, allocations: 2.214 MB / 0.5396 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003069/0.5907, allocations: 0.6775 MB / 0.5403 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006989/0.5977, allocations: 5.666 MB / 0.5458 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001406/0.5991, allocations: 2.247 MB / 0.548 GB, free: 125.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.5995, allocations: 145 kB / 0.5482 GB, free: 125.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5995, allocations: 3.828 kB / 0.5482 GB, free: 125.2 MB / 462.1 MB Notification: Performance of Templates: time 0.3208/0.9203, allocations: 188.1 MB / 0.7319 GB, free: 190.4 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches