Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_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 trunk/package.mo): time 0.00119/0.00119, allocations: 205.6 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001114/0.001114, allocations: 93.72 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.903e-06/6.933e-06, allocations: 0 / 343.1 MB, free: 8.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08835/0.08837, allocations: 51.47 MB / 394.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2375/0.3259, allocations: 110.5 MB / 0.4932 GB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.3262, allocations: 90.31 kB / 0.4933 GB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1423/0.4685, allocations: 54.47 MB / 0.5465 GB, free: 13.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002495/0.4688, allocations: 75.86 kB / 0.5466 GB, free: 13.5 MB / 426.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.006823/0.4756, allocations: 2.648 MB / 0.5492 GB, free: 10.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4757, allocations: 8.031 kB / 0.5492 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.4773, allocations: 364 kB / 0.5495 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004627/0.4819, allocations: 1.948 MB / 0.5514 GB, free: 8.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.482, allocations: 84 kB / 0.5515 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000576/0.4826, allocations: 147.9 kB / 0.5517 GB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005336/0.488, allocations: 2.607 MB / 0.5542 GB, free: 5.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005643/0.4936, allocations: 2.995 MB / 0.5571 GB, free: 2.406 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.592e-05/0.4937, allocations: 11.84 kB / 0.5571 GB, free: 2.395 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002561/0.494, allocations: 0 / 0.5571 GB, free: 2.395 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.4941, allocations: 116.8 kB / 0.5573 GB, free: 2.277 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01763/0.5118, allocations: 10.48 MB / 0.5675 GB, free: 7.535 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.5134, allocations: 1.035 MB / 0.5685 GB, free: 6.492 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.515, allocations: 1.101 MB / 0.5696 GB, free: 5.391 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003057/0.5153, allocations: 134.4 kB / 0.5697 GB, free: 5.242 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.5154, allocations: 43.88 kB / 0.5698 GB, free: 5.188 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.216e-06/0.5154, allocations: 4 kB / 0.5698 GB, free: 5.184 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.009635/0.525, allocations: 5.034 MB / 0.5747 GB, free: 104 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1231/0.6481, allocations: 94.42 kB / 0.5748 GB, free: 138.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001767/0.6499, allocations: 1.331 MB / 0.5761 GB, free: 138.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000244/0.6502, allocations: 25.7 kB / 0.5761 GB, free: 138.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003349/0.6505, allocations: 0.9622 MB / 0.577 GB, free: 138.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.6508, allocations: 495.2 kB / 0.5775 GB, free: 137.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.164e-05/0.6509, allocations: 3.391 kB / 0.5775 GB, free: 137.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.651, allocations: 372.6 kB / 0.5779 GB, free: 137.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009723/0.652, allocations: 0.8171 MB / 0.5787 GB, free: 137.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.6531, allocations: 1.264 MB / 0.5799 GB, free: 137.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.6542, allocations: 1.016 MB / 0.5809 GB, free: 137.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.6543, allocations: 3.406 kB / 0.5809 GB, free: 137.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003494/0.6578, allocations: 2.675 MB / 0.5835 GB, free: 136.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007858/0.6586, allocations: 5.522 MB / 0.5889 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.6586, allocations: 15.28 kB / 0.5889 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.66, allocations: 0.6715 MB / 0.5896 GB, free: 131 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.6613, allocations: 363.8 kB / 0.5899 GB, free: 131 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006221/0.6675, allocations: 7.512 MB / 0.5972 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.6689, allocations: 59.02 kB / 0.5973 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.669, allocations: 72.41 kB / 0.5974 GB, free: 127.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.4e-06/0.6691, allocations: 6.219 kB / 0.5974 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003201/0.6723, allocations: 2.457 MB / 0.5998 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.6723, allocations: 13.91 kB / 0.5998 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.6736, allocations: 0.664 MB / 0.6004 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.6749, allocations: 364.3 kB / 0.6008 GB, free: 127.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006077/0.681, allocations: 7.518 MB / 0.6081 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.6823, allocations: 49.44 kB / 0.6082 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.6825, allocations: 71.72 kB / 0.6082 GB, free: 123.5 MB / 442.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.0003389/0.6828, allocations: 157.9 kB / 0.6084 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000277/0.6831, allocations: 184.5 kB / 0.6086 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003597/0.6867, allocations: 2.471 MB / 0.611 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.6867, allocations: 21.19 kB / 0.611 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6867, allocations: 3.875 kB / 0.611 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.6868, allocations: 6.938 kB / 0.611 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007181/0.694, allocations: 4.908 MB / 0.6158 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.694, allocations: 3.969 kB / 0.6158 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.695, allocations: 228.4 kB / 0.616 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.6966, allocations: 0.6914 MB / 0.6167 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.6967, allocations: 10.81 kB / 0.6167 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007436/0.7041, allocations: 8.971 MB / 0.6255 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.7042, allocations: 5.031 kB / 0.6255 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005309/0.7095, allocations: 3.852 MB / 0.6292 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009808/0.7105, allocations: 454.1 kB / 0.6297 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000297/0.7108, allocations: 10.89 kB / 0.6297 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009733/0.7118, allocations: 60.89 kB / 0.6297 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.712, allocations: 90.17 kB / 0.6298 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.852e-05/0.7121, allocations: 38.34 kB / 0.6299 GB, free: 113.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001258/0.7134, allocations: 1.013 MB / 0.6308 GB, free: 113.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002602/0.716, allocations: 0.8936 MB / 0.6317 GB, free: 113.4 MB / 442.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.0005201/0.7165, allocations: 400.9 kB / 0.6321 GB, free: 113.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004799/0.7213, allocations: 4.19 MB / 0.6362 GB, free: 111.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.7213, allocations: 4.562 kB / 0.6362 GB, free: 111.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.7233, allocations: 1.556 MB / 0.6377 GB, free: 110.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/0.7256, allocations: 480.2 kB / 0.6382 GB, free: 110.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008379/0.734, allocations: 4.493 MB / 0.6426 GB, free: 108.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/0.7358, allocations: 2.244 MB / 0.6448 GB, free: 107.8 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/0.7358, allocations: 4 kB / 0.6448 GB, free: 107.8 MB / 442.7 MB Notification: Performance of Templates: time 0.06023/0.796, allocations: 42.75 MB / 0.6865 GB, free: 94.81 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches