Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo): time 0.0009361/0.0009361, allocations: 178.7 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.251/1.251, allocations: 205.2 MB / 214.1 MB, free: 5.242 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008729/0.0008729, allocations: 86.28 kB / 262.1 MB, free: 5.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.736e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09889/0.09892, allocations: 47.57 MB / 362.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2965/0.3954, allocations: 114.9 MB / 477.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.3957, allocations: 85.95 kB / 477.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1888/0.5846, allocations: 75.81 MB / 0.5403 GB, free: 5.371 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003153/0.585, allocations: 87.86 kB / 0.5404 GB, free: 5.285 MB / 394.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.009112/0.5941, allocations: 3.203 MB / 0.5436 GB, free: 2.016 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.5941, allocations: 8.031 kB / 0.5436 GB, free: 2.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00308/0.5972, allocations: 0.6045 MB / 0.5441 GB, free: 1.398 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008297/0.6055, allocations: 3.147 MB / 0.5472 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.6058, allocations: 100 kB / 0.5473 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009615/0.6067, allocations: 191.9 kB / 0.5475 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00649/0.6132, allocations: 3.129 MB / 0.5506 GB, free: 10.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006892/0.6202, allocations: 3.644 MB / 0.5541 GB, free: 6.973 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.357e-05/0.6203, allocations: 3.938 kB / 0.5541 GB, free: 6.969 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002739/0.6206, allocations: 7.906 kB / 0.5541 GB, free: 6.961 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.6207, allocations: 142.1 kB / 0.5543 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02237/0.6431, allocations: 13.29 MB / 0.5672 GB, free: 9.172 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.6449, allocations: 1.114 MB / 0.5683 GB, free: 8.055 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/0.6469, allocations: 1.317 MB / 0.5696 GB, free: 6.734 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006016/0.6529, allocations: 3.192 MB / 0.5727 GB, free: 3.469 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.653, allocations: 59.78 kB / 0.5728 GB, free: 3.402 MB / 426.7 MB Notification: Performance of pre-optimization done (n=164): time 4.458e-06/0.653, allocations: 0 / 0.5728 GB, free: 3.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=168): time 0.1586/0.8116, allocations: 4.89 MB / 0.5776 GB, free: 138.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.8117, allocations: 103.3 kB / 0.5777 GB, free: 138.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/0.814, allocations: 1.417 MB / 0.579 GB, free: 138.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.8142, allocations: 25.7 kB / 0.5791 GB, free: 138.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006655/0.8149, allocations: 1.155 MB / 0.5802 GB, free: 138.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004627/0.8154, allocations: 0.5364 MB / 0.5807 GB, free: 138 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.417e-05/0.8155, allocations: 3.375 kB / 0.5807 GB, free: 138 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.8156, allocations: 383.6 kB / 0.5811 GB, free: 137.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.8166, allocations: 0.7993 MB / 0.5819 GB, free: 137.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.818, allocations: 1.325 MB / 0.5832 GB, free: 137.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.8195, allocations: 1.05 MB / 0.5842 GB, free: 137.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.8195, allocations: 2.719 kB / 0.5842 GB, free: 137.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.003835/0.8233, allocations: 2.772 MB / 0.5869 GB, free: 136.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001177/0.8245, allocations: 6.533 MB / 0.5933 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.8245, allocations: 21 kB / 0.5933 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.8257, allocations: 0.5198 MB / 0.5938 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/0.8273, allocations: 401.6 kB / 0.5942 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005767/0.8331, allocations: 6.669 MB / 0.6007 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.8349, allocations: 53.94 kB / 0.6008 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/0.8352, allocations: 76.69 kB / 0.6008 GB, free: 126.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.957e-06/0.8352, allocations: 3.875 kB / 0.6008 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004206/0.8394, allocations: 2.535 MB / 0.6033 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.8394, allocations: 26.12 kB / 0.6033 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.8406, allocations: 0.5188 MB / 0.6038 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.8424, allocations: 406.2 kB / 0.6042 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00644/0.8489, allocations: 6.659 MB / 0.6107 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.8507, allocations: 47.16 kB / 0.6108 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002221/0.8509, allocations: 76.06 kB / 0.6108 GB, free: 122.2 MB / 426.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.000521/0.8514, allocations: 165.9 kB / 0.611 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005383/0.852, allocations: 202.8 kB / 0.6112 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004393/0.8564, allocations: 2.615 MB / 0.6138 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.8564, allocations: 21.09 kB / 0.6138 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/0.8565, allocations: 6.75 kB / 0.6138 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.8565, allocations: 8.625 kB / 0.6138 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009152/0.8656, allocations: 5.393 MB / 0.6191 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.8657, allocations: 6.875 kB / 0.6191 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.8667, allocations: 217.5 kB / 0.6193 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.8681, allocations: 0.6586 MB / 0.6199 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.8683, allocations: 13.97 kB / 0.6199 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009215/0.8775, allocations: 10.45 MB / 0.6301 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.8775, allocations: 3.688 kB / 0.6301 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005584/0.8831, allocations: 4.049 MB / 0.6341 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.8842, allocations: 471.5 kB / 0.6345 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005349/0.8848, allocations: 14.08 kB / 0.6346 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.8861, allocations: 47.31 kB / 0.6346 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.8863, allocations: 94.38 kB / 0.6347 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.8864, allocations: 46.73 kB / 0.6347 GB, free: 113.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002255/0.8887, allocations: 1.061 MB / 0.6358 GB, free: 113.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004746/0.8935, allocations: 0.9904 MB / 0.6367 GB, free: 113.3 MB / 426.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%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007913/0.8943, allocations: 435.4 kB / 0.6371 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005985/0.9003, allocations: 4.231 MB / 0.6413 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.9003, allocations: 0 / 0.6413 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002221/0.9025, allocations: 1.698 MB / 0.6429 GB, free: 110.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00273/0.9053, allocations: 483.9 kB / 0.6434 GB, free: 110.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.9172, allocations: 4.861 MB / 0.6481 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003085/0.9203, allocations: 2.489 MB / 0.6506 GB, free: 107.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.183e-06/0.9204, allocations: 0 / 0.6506 GB, free: 107.3 MB / 426.7 MB Notification: Performance of Templates: time 0.0669/0.9873, allocations: 45.38 MB / 0.6949 GB, free: 81.78 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Braking/SMPM_Braking.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches