Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 183.5 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.136/1.136, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009059/0.0009059, allocations: 102 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.043e-06, allocations: 4 kB / 336.5 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.189, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1119/0.301, allocations: 109.7 MB / 496.6 MB, free: 9.094 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.3013, allocations: 91.89 kB / 496.7 MB, free: 9.004 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2728/0.5741, allocations: 54.36 MB / 0.5381 GB, free: 57.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002529/0.5744, allocations: 75.81 kB / 0.5382 GB, free: 57.72 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.006191/0.5806, allocations: 2.65 MB / 0.5408 GB, free: 55.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.5807, allocations: 8.031 kB / 0.5408 GB, free: 55.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001508/0.5822, allocations: 352 kB / 0.5411 GB, free: 54.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004305/0.5865, allocations: 1.958 MB / 0.543 GB, free: 53.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.5866, allocations: 80 kB / 0.5431 GB, free: 53.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006637/0.5873, allocations: 151.8 kB / 0.5432 GB, free: 53.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004725/0.592, allocations: 2.596 MB / 0.5458 GB, free: 51.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00573/0.5978, allocations: 3.002 MB / 0.5487 GB, free: 48.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-05/0.5979, allocations: 4 kB / 0.5487 GB, free: 48.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003855/0.5983, allocations: 7.906 kB / 0.5487 GB, free: 48.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.65e-05/0.5984, allocations: 120.8 kB / 0.5488 GB, free: 48.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01674/0.6151, allocations: 10.47 MB / 0.5591 GB, free: 37.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.6166, allocations: 1.044 MB / 0.5601 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.618, allocations: 1.098 MB / 0.5611 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002809/0.6183, allocations: 134.3 kB / 0.5613 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.6183, allocations: 55.81 kB / 0.5613 GB, free: 35.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.356e-06/0.6183, allocations: 0 / 0.5613 GB, free: 35.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.008526/0.6268, allocations: 5.032 MB / 0.5662 GB, free: 30.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.6269, allocations: 98.42 kB / 0.5663 GB, free: 30.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.6291, allocations: 1.338 MB / 0.5676 GB, free: 29.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/0.6293, allocations: 29.7 kB / 0.5677 GB, free: 29.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.6297, allocations: 0.9514 MB / 0.5686 GB, free: 28.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.63, allocations: 492.6 kB / 0.5691 GB, free: 27.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.584e-05/0.6301, allocations: 0 / 0.5691 GB, free: 27.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.6302, allocations: 377.9 kB / 0.5694 GB, free: 27.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.6312, allocations: 0.8122 MB / 0.5702 GB, free: 26.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.6324, allocations: 1.267 MB / 0.5715 GB, free: 24.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.6336, allocations: 1.009 MB / 0.5724 GB, free: 23.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.6337, allocations: 4 kB / 0.5724 GB, free: 23.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003838/0.6375, allocations: 2.675 MB / 0.5751 GB, free: 21.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007872/0.6383, allocations: 5.521 MB / 0.5805 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.6383, allocations: 16 kB / 0.5805 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/0.6398, allocations: 0.6785 MB / 0.5811 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.6414, allocations: 359.4 kB / 0.5815 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006476/0.6479, allocations: 7.516 MB / 0.5888 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/0.6495, allocations: 59.75 kB / 0.5889 GB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002129/0.6497, allocations: 68.09 kB / 0.5889 GB, free: 6.109 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-06/0.6497, allocations: 11.22 kB / 0.5889 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003481/0.6532, allocations: 2.46 MB / 0.5913 GB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.6532, allocations: 12 kB / 0.5914 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.6546, allocations: 0.6789 MB / 0.592 GB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.656, allocations: 351.5 kB / 0.5924 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007738/0.6637, allocations: 7.514 MB / 0.5997 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.6654, allocations: 47.94 kB / 0.5997 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000297/0.6657, allocations: 76.06 kB / 0.5998 GB, free: 10.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(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%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004891/0.6662, allocations: 164.2 kB / 0.6 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000503/0.6667, allocations: 185.8 kB / 0.6001 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004453/0.6712, allocations: 2.472 MB / 0.6026 GB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.6712, allocations: 12 kB / 0.6026 GB, free: 7.758 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.6712, allocations: 7.984 kB / 0.6026 GB, free: 7.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.6712, allocations: 3.984 kB / 0.6026 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009168/0.6804, allocations: 4.902 MB / 0.6074 GB, free: 2.781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.6805, allocations: 3.938 kB / 0.6074 GB, free: 2.777 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.6816, allocations: 228 kB / 0.6076 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001741/0.6834, allocations: 0.6981 MB / 0.6083 GB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.6835, allocations: 11.98 kB / 0.6083 GB, free: 1.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009414/0.6929, allocations: 8.967 MB / 0.617 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.693, allocations: 192 / 0.617 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005829/0.6988, allocations: 3.862 MB / 0.6208 GB, free: 4.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.7, allocations: 458.6 kB / 0.6213 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005155/0.7005, allocations: 11.91 kB / 0.6213 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.7018, allocations: 63.92 kB / 0.6213 GB, free: 3.887 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.702, allocations: 81.19 kB / 0.6214 GB, free: 3.809 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.7021, allocations: 39.98 kB / 0.6214 GB, free: 3.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001833/0.704, allocations: 1.002 MB / 0.6224 GB, free: 2.773 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003453/0.7074, allocations: 0.8984 MB / 0.6233 GB, free: 1.875 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006598/0.7081, allocations: 394.9 kB / 0.6237 GB, free: 1.512 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006208/0.7143, allocations: 4.199 MB / 0.6278 GB, free: 13.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/0.7144, allocations: 4 kB / 0.6278 GB, free: 13.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/0.7167, allocations: 1.569 MB / 0.6293 GB, free: 11.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.7194, allocations: 467.6 kB / 0.6298 GB, free: 11.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.7301, allocations: 4.488 MB / 0.6341 GB, free: 6.578 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002833/0.733, allocations: 2.241 MB / 0.6363 GB, free: 4.305 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-05/0.733, allocations: 4 kB / 0.6363 GB, free: 4.301 MB / 426.7 MB Notification: Performance of Templates: time 0.1911/0.9241, allocations: 42.68 MB / 0.678 GB, free: 154.2 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches