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.00136/0.00136, allocations: 115.4 kB / 17.07 MB, free: 6 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.001552/0.001552, allocations: 190.9 kB / 18 MB, free: 5.082 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.477/1.477, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009896/0.0009896, allocations: 47.94 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2798, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01164/0.2915, allocations: 11.42 MB / 412.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005988/0.2975, allocations: 3.544 MB / 415.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000974/0.2985, allocations: 67.69 kB / 415.8 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.3002, allocations: 0.8853 MB / 416.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00186/0.3021, allocations: 0.9747 MB / 417.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007722/0.3028, allocations: 443.4 kB / 418.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003275/0.3061, allocations: 3.743 MB / 421.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002892/0.309, allocations: 2.869 MB / 424.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001931/0.311, allocations: 1.659 MB / 426.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002118/0.3131, allocations: 1.965 MB / 428.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004964/0.3136, allocations: 420 kB / 428.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008349/0.3145, allocations: 0.4959 MB / 429.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.3155, allocations: 1.2 MB / 430.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.3176, allocations: 1.933 MB / 432.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004995/0.3226, allocations: 5.545 MB / 437.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3227, allocations: 0 / 437.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3227, allocations: 0 / 437.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.788e-05/0.3227, allocations: 4 kB / 437.9 MB, free: 3.531 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.006667/0.3294, allocations: 3.813 MB / 441.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3295, allocations: 8.031 kB / 441.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000901/0.3304, allocations: 400.5 kB / 442.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003221/0.3336, allocations: 2.052 MB / 444.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.3338, allocations: 214.1 kB / 444.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003853/0.3342, allocations: 287.8 kB / 444.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005893/0.3401, allocations: 3.857 MB / 448.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.225e-05/0.3401, allocations: 7.938 kB / 448.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/0.3404, allocations: 116 kB / 448.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.3405, allocations: 121.5 kB / 448.7 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005004/0.3455, allocations: 3.25 MB / 452 MB, free: 5.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01664/0.3622, allocations: 11.79 MB / 463.8 MB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003131/0.3654, allocations: 3.672 MB / 467.4 MB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.3674, allocations: 1.248 MB / 468.7 MB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002269/0.3676, allocations: 122.4 kB / 468.8 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/0.3677, allocations: 51.81 kB / 468.9 MB, free: 3.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.015e-06/0.3677, allocations: 4 kB / 468.9 MB, free: 3.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01414/0.3819, allocations: 7.316 MB / 476.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.3819, allocations: 68.72 kB / 476.3 MB, free: 11.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003031/0.385, allocations: 2.056 MB / 478.3 MB, free: 9.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.3851, allocations: 53.7 kB / 478.4 MB, free: 9.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.3862, allocations: 1.374 MB / 479.7 MB, free: 8.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000467/0.3866, allocations: 0.5122 MB / 480.2 MB, free: 7.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005412/0.3872, allocations: 347.2 kB / 480.6 MB, free: 7.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3873, allocations: 301.1 kB / 480.9 MB, free: 7.195 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.3886, allocations: 0.8705 MB / 481.8 MB, free: 6.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.3902, allocations: 1.365 MB / 483.1 MB, free: 4.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002927/0.3931, allocations: 2.33 MB / 485.4 MB, free: 2.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3931, allocations: 4 kB / 485.4 MB, free: 2.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005349/0.3985, allocations: 3.273 MB / 488.7 MB, free: 14.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.3985, allocations: 15.94 kB / 488.7 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-05/0.3986, allocations: 16 kB / 488.8 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002275/0.4009, allocations: 0.8487 MB / 489.6 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4021, allocations: 347.4 kB / 489.9 MB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01772/0.4198, allocations: 20.57 MB / 0.4985 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4216, allocations: 99.89 kB / 0.4986 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.4218, allocations: 75.98 kB / 0.4987 GB, free: 7.344 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.001761/0.4236, allocations: 0.9345 MB / 0.4996 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005437/0.4242, allocations: 221.4 kB / 0.4998 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004562/0.4287, allocations: 2.636 MB / 0.5024 GB, free: 3.477 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.4288, allocations: 16 kB / 0.5024 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/0.4288, allocations: 4 kB / 0.5024 GB, free: 3.457 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.4288, allocations: 11.97 kB / 0.5024 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009725/0.4385, allocations: 5.871 MB / 0.5082 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.351e-05/0.4386, allocations: 4 kB / 0.5082 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000776/0.4394, allocations: 195.6 kB / 0.5084 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/0.4413, allocations: 0.7308 MB / 0.5091 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-05/0.4414, allocations: 35.98 kB / 0.5091 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01508/0.4565, allocations: 18.15 MB / 0.5268 GB, free: 8.855 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.4565, allocations: 8 kB / 0.5268 GB, free: 8.848 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006013/0.4625, allocations: 3.795 MB / 0.5306 GB, free: 4.934 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.4636, allocations: 490.3 kB / 0.531 GB, free: 4.434 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004702/0.4641, allocations: 32 kB / 0.5311 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.4654, allocations: 107.9 kB / 0.5312 GB, free: 4.297 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/0.4657, allocations: 141 kB / 0.5313 GB, free: 4.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.4658, allocations: 47.94 kB / 0.5313 GB, free: 4.113 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002358/0.4682, allocations: 1.404 MB / 0.5327 GB, free: 2.688 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4682, allocations: 0 / 0.5327 GB, free: 2.688 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002489/0.4707, allocations: 0.6678 MB / 0.5334 GB, free: 2.02 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.0004436/0.4711, allocations: 208.7 kB / 0.5336 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1978/0.669, allocations: 3.438 MB / 0.5369 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/0.669, allocations: 5.5 kB / 0.5369 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003031/0.6721, allocations: 2.208 MB / 0.5391 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003102/0.6752, allocations: 0.677 MB / 0.5397 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007676/0.6829, allocations: 5.654 MB / 0.5453 GB, free: 126.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001512/0.6844, allocations: 2.291 MB / 0.5475 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001303/0.6857, allocations: 0.4977 MB / 0.548 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.6861, allocations: 134.2 kB / 0.5481 GB, free: 125 MB / 462.1 MB Notification: Performance of SimCode: time 5.41e-07/0.6861, allocations: 0 / 0.5481 GB, free: 125 MB / 462.1 MB Notification: Performance of Templates: time 0.05099/0.7371, allocations: 36.61 MB / 0.5839 GB, free: 91.84 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/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