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.001074/0.001074, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.001004/0.001004, allocations: 192 kB / 18.63 MB, free: 4.504 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009782/0.0009784, allocations: 47.22 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09079, allocations: 49.44 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01174/0.1026, allocations: 11.42 MB / 362.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006179/0.1088, allocations: 3.544 MB / 366.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009032/0.1097, allocations: 71.69 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.1113, allocations: 0.8306 MB / 367.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001789/0.1132, allocations: 0.9201 MB / 368.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007172/0.1139, allocations: 439.4 kB / 368.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1614/0.2753, allocations: 3.736 MB / 372.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003484/0.2789, allocations: 2.874 MB / 375.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002574/0.2815, allocations: 1.65 MB / 377 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003053/0.2845, allocations: 1.967 MB / 379 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007687/0.2853, allocations: 419.6 kB / 379.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.2867, allocations: 0.4935 MB / 379.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.2879, allocations: 1.202 MB / 381.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.29, allocations: 1.934 MB / 383 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005178/0.2952, allocations: 5.538 MB / 388.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2952, allocations: 5.094 kB / 388.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2952, allocations: 0 / 388.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001298/0.2954, allocations: 0 / 388.5 MB, free: 7.422 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007017/0.3024, allocations: 3.815 MB / 392.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.3024, allocations: 8.25 kB / 392.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009497/0.3034, allocations: 393.2 kB / 392.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003582/0.307, allocations: 2.058 MB / 394.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.3071, allocations: 214.2 kB / 395 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/0.3075, allocations: 282.6 kB / 395.3 MB, free: 3.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005218/0.3127, allocations: 3.862 MB / 399.1 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-05/0.3128, allocations: 10.88 kB / 399.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.313, allocations: 116.2 kB / 399.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000108/0.3131, allocations: 123.8 kB / 399.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004852/0.318, allocations: 3.255 MB / 402.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01789/0.3359, allocations: 11.77 MB / 414.4 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002914/0.3388, allocations: 3.66 MB / 418.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.3407, allocations: 1.241 MB / 419.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002447/0.3409, allocations: 122.4 kB / 419.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.341, allocations: 55.88 kB / 419.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 2.996e-06/0.341, allocations: 0.9375 kB / 419.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01363/0.3546, allocations: 7.322 MB / 426.8 MB, free: 4.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.3547, allocations: 64.72 kB / 426.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/0.3576, allocations: 2.064 MB / 428.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.3577, allocations: 53.7 kB / 429 MB, free: 2.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008938/0.3586, allocations: 1.376 MB / 430.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000363/0.359, allocations: 0.5026 MB / 430.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004951/0.3595, allocations: 347.2 kB / 431.2 MB, free: 388 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.3596, allocations: 301.1 kB / 431.5 MB, free: 84 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.3608, allocations: 0.8705 MB / 432.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.3623, allocations: 1.365 MB / 433.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.365, allocations: 2.331 MB / 436.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.365, allocations: 4 kB / 436.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005194/0.3702, allocations: 3.275 MB / 439.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3702, allocations: 12 kB / 439.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.3703, allocations: 16 kB / 439.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002168/0.3724, allocations: 0.8483 MB / 440.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.3736, allocations: 344.4 kB / 440.6 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/0.3906, allocations: 20.58 MB / 461.1 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.3923, allocations: 95.83 kB / 461.2 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.3924, allocations: 76 kB / 461.3 MB, free: 0.543 MB / 366.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.001543/0.394, allocations: 0.9389 MB / 462.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003233/0.3943, allocations: 213.4 kB / 462.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003972/0.3983, allocations: 2.631 MB / 465.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.3983, allocations: 16 kB / 465.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.3983, allocations: 8 kB / 465.1 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.3984, allocations: 11.97 kB / 465.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008853/0.4072, allocations: 5.873 MB / 471 MB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.4073, allocations: 4 kB / 471 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007204/0.408, allocations: 197.8 kB / 471.2 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/0.4097, allocations: 0.7372 MB / 471.9 MB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.634e-05/0.4098, allocations: 35.98 kB / 472 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01379/0.4236, allocations: 18.15 MB / 490.1 MB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.4236, allocations: 11.5 kB / 490.1 MB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005462/0.4291, allocations: 3.797 MB / 493.9 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.4304, allocations: 478.3 kB / 494.4 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002675/0.4307, allocations: 43.92 kB / 494.4 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4317, allocations: 103.9 kB / 494.5 MB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/0.432, allocations: 140.5 kB / 494.7 MB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.62e-05/0.4321, allocations: 51.98 kB / 494.7 MB, free: 13.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001922/0.434, allocations: 1.396 MB / 496.1 MB, free: 12.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.434, allocations: 0 / 496.1 MB, free: 12.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002258/0.4363, allocations: 0.6597 MB / 496.8 MB, free: 11.5 MB / 414.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.0003658/0.4367, allocations: 221.2 kB / 497 MB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00445/0.4411, allocations: 3.446 MB / 0.4887 GB, free: 7.762 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.4412, allocations: 4 kB / 0.4887 GB, free: 7.758 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002389/0.4436, allocations: 2.197 MB / 0.4909 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.4461, allocations: 0.6776 MB / 0.4915 GB, free: 4.785 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008163/0.4543, allocations: 5.668 MB / 0.4971 GB, free: 15.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001865/0.4562, allocations: 2.284 MB / 0.4993 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001371/0.4576, allocations: 0.4909 MB / 0.4998 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.4579, allocations: 131.4 kB / 0.4999 GB, free: 12.14 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4579, allocations: 4 kB / 0.4999 GB, free: 12.13 MB / 430.1 MB Notification: Performance of Templates: time 0.2131/0.671, allocations: 35.95 MB / 0.535 GB, free: 146.9 MB / 446.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 -s gbode -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