Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001153/0.001153, allocations: 198.8 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000919/0.0009191, allocations: 97.81 kB / 286.3 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/7.985e-06, allocations: 4 kB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 51.48 MB / 394.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3211/0.4369, allocations: 116.9 MB / 0.4995 GB, free: 8.938 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.4372, allocations: 91.7 kB / 0.4996 GB, free: 8.891 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4091/0.8464, allocations: 78.72 MB / 0.5765 GB, free: 52.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002401/0.8467, allocations: 87.19 kB / 0.5766 GB, free: 52.69 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.00741/0.8541, allocations: 3.241 MB / 0.5797 GB, free: 51.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.8541, allocations: 10 kB / 0.5797 GB, free: 51.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003196/0.8573, allocations: 0.6026 MB / 0.5803 GB, free: 51.44 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006998/0.8643, allocations: 3.156 MB / 0.5834 GB, free: 50.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.8645, allocations: 102.4 kB / 0.5835 GB, free: 50.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005448/0.865, allocations: 183.1 kB / 0.5837 GB, free: 50.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005181/0.8702, allocations: 3.13 MB / 0.5867 GB, free: 50.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005836/0.8761, allocations: 3.631 MB / 0.5903 GB, free: 50.42 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.014e-05/0.8762, allocations: 3 kB / 0.5903 GB, free: 50.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.8765, allocations: 3.969 kB / 0.5903 GB, free: 50.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/0.8766, allocations: 144.7 kB / 0.5904 GB, free: 50.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/0.8964, allocations: 13.44 MB / 0.6036 GB, free: 46.87 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.8978, allocations: 1.119 MB / 0.6047 GB, free: 46.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.8995, allocations: 1.36 MB / 0.606 GB, free: 46.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004993/0.9045, allocations: 3.378 MB / 0.6093 GB, free: 46.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.9046, allocations: 55.06 kB / 0.6093 GB, free: 46.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=164): time 2.885e-06/0.9046, allocations: 0 / 0.6093 GB, free: 46.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=168): time 0.007641/0.9122, allocations: 4.922 MB / 0.6141 GB, free: 44.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.9123, allocations: 93.73 kB / 0.6142 GB, free: 44.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.9144, allocations: 1.423 MB / 0.6156 GB, free: 44.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.9145, allocations: 25.7 kB / 0.6156 GB, free: 44.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005843/0.9151, allocations: 1.152 MB / 0.6168 GB, free: 43.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003948/0.9155, allocations: 0.536 MB / 0.6173 GB, free: 43.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/0.9156, allocations: 0 / 0.6173 GB, free: 43.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.9158, allocations: 381 kB / 0.6177 GB, free: 43.24 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.9168, allocations: 0.8102 MB / 0.6184 GB, free: 43.24 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.918, allocations: 1.332 MB / 0.6197 GB, free: 42.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.9194, allocations: 1.051 MB / 0.6208 GB, free: 42.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.9194, allocations: 3.875 kB / 0.6208 GB, free: 42.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.003985/0.9234, allocations: 2.778 MB / 0.6235 GB, free: 42.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001132/0.9246, allocations: 6.534 MB / 0.6299 GB, free: 35.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.9246, allocations: 13.94 kB / 0.6299 GB, free: 35.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.9257, allocations: 0.5253 MB / 0.6304 GB, free: 35.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.9274, allocations: 404.1 kB / 0.6308 GB, free: 35.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005708/0.9331, allocations: 6.681 MB / 0.6373 GB, free: 31.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.9351, allocations: 48.84 kB / 0.6374 GB, free: 31.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/0.9354, allocations: 81.94 kB / 0.6374 GB, free: 31.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.9354, allocations: 3.812 kB / 0.6374 GB, free: 31.55 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003946/0.9393, allocations: 2.55 MB / 0.6399 GB, free: 31.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.9394, allocations: 14 kB / 0.6399 GB, free: 31.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.9404, allocations: 0.5241 MB / 0.6405 GB, free: 30.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.9418, allocations: 403.6 kB / 0.6408 GB, free: 30.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005385/0.9472, allocations: 6.667 MB / 0.6473 GB, free: 25.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.9491, allocations: 37.84 kB / 0.6474 GB, free: 25.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.9492, allocations: 82.23 kB / 0.6475 GB, free: 25.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (214): * Single equations (assignments): 210 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005046/0.9498, allocations: 163.8 kB / 0.6476 GB, free: 25.76 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.9501, allocations: 202.4 kB / 0.6478 GB, free: 25.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003998/0.9541, allocations: 2.63 MB / 0.6504 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.9541, allocations: 15.66 kB / 0.6504 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.9542, allocations: 7.875 kB / 0.6504 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.9542, allocations: 9.984 kB / 0.6504 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009553/0.9637, allocations: 5.393 MB / 0.6557 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.9638, allocations: 1.469 kB / 0.6557 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.9649, allocations: 221 kB / 0.6559 GB, free: 22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/0.9665, allocations: 0.6502 MB / 0.6565 GB, free: 21.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.9666, allocations: 13.92 kB / 0.6565 GB, free: 21.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.9767, allocations: 10.46 MB / 0.6668 GB, free: 29.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.9767, allocations: 2.031 kB / 0.6668 GB, free: 29.65 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005824/0.9825, allocations: 4.058 MB / 0.6707 GB, free: 27.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/0.9838, allocations: 477 kB / 0.6712 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003363/0.9841, allocations: 12.03 kB / 0.6712 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.9852, allocations: 46.75 kB / 0.6712 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.9854, allocations: 99.41 kB / 0.6713 GB, free: 27.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.9856, allocations: 42.53 kB / 0.6714 GB, free: 27.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001714/0.9873, allocations: 1.066 MB / 0.6724 GB, free: 26.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003547/0.9908, allocations: 1.001 MB / 0.6734 GB, free: 26.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (117): * Single equations (assignments): 112 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000705/0.9915, allocations: 471.2 kB / 0.6738 GB, free: 26.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00742/0.999, allocations: 4.234 MB / 0.678 GB, free: 24.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.999, allocations: 0 / 0.678 GB, free: 24.49 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/1.001, allocations: 1.694 MB / 0.6796 GB, free: 23.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/1.004, allocations: 494.9 kB / 0.6801 GB, free: 23.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009712/1.014, allocations: 4.87 MB / 0.6848 GB, free: 21.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002296/1.016, allocations: 2.504 MB / 0.6873 GB, free: 20.36 MB / 458.7 MB Notification: Performance of SimCode: time 1.223e-06/1.016, allocations: 0 / 0.6873 GB, free: 20.36 MB / 458.7 MB Notification: Performance of Templates: time 0.07517/1.091, allocations: 45.89 MB / 0.7321 GB, free: 6.535 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches