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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 95.95 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 200.1 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.7 MB / 247.5 MB, free: 11.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 8.281 kB / 308.4 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09265, allocations: 51.52 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01137/0.1041, allocations: 10.84 MB / 370.8 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1722/0.2763, allocations: 3.689 MB / 374.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00195/0.2783, allocations: 60.19 kB / 374.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002425/0.2807, allocations: 0.7156 MB / 375.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003161/0.2839, allocations: 0.8433 MB / 376.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.2851, allocations: 444.1 kB / 376.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004369/0.2895, allocations: 3.767 MB / 380.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002478/0.292, allocations: 2.176 MB / 382.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.2939, allocations: 1.118 MB / 383.6 MB, free: 8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002279/0.2962, allocations: 1.532 MB / 385.1 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004339/0.2967, allocations: 162.9 kB / 385.2 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009288/0.2976, allocations: 273.3 kB / 385.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008863/0.2985, allocations: 0.8133 MB / 386.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00169/0.3002, allocations: 1.48 MB / 387.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003429/0.3037, allocations: 4.117 MB / 391.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3037, allocations: 1.469 kB / 391.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3037, allocations: 0 / 391.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001069/0.3038, allocations: 0 / 391.9 MB, free: 3.82 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.005719/0.3095, allocations: 2.954 MB / 394.9 MB, free: 1.832 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3096, allocations: 8.25 kB / 394.9 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009768/0.3106, allocations: 353.1 kB / 395.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.3132, allocations: 1.848 MB / 397.1 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.3134, allocations: 188.9 kB / 397.3 MB, free: 284 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003765/0.3138, allocations: 254.6 kB / 397.5 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00559/0.3194, allocations: 3.421 MB / 400.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.771e-05/0.3195, allocations: 16.48 kB / 400.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000238/0.3197, allocations: 106.6 kB / 401 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.3198, allocations: 119.9 kB / 401.2 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004874/0.3247, allocations: 2.939 MB / 404.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01622/0.341, allocations: 10.93 MB / 415 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.3438, allocations: 2.436 MB / 417.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.3456, allocations: 1.198 MB / 418.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002308/0.3458, allocations: 122.4 kB / 418.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.3459, allocations: 48.34 kB / 418.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=133): time 4.459e-06/0.3459, allocations: 3.938 kB / 418.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01498/0.3609, allocations: 7.312 MB / 426.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.361, allocations: 94.41 kB / 426.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002565/0.3635, allocations: 1.838 MB / 428.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.3637, allocations: 49.7 kB / 428.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008214/0.3645, allocations: 1.217 MB / 429.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003858/0.3649, allocations: 0.4958 MB / 429.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.3651, allocations: 137.6 kB / 430 MB, free: 1.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3652, allocations: 309 kB / 430.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.3666, allocations: 0.855 MB / 431.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.3681, allocations: 1.316 MB / 432.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/0.371, allocations: 2.269 MB / 434.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.371, allocations: 4 kB / 434.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004576/0.3756, allocations: 2.868 MB / 437.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002968/0.3759, allocations: 0.4999 MB / 438.1 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.376, allocations: 12 kB / 438.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.3775, allocations: 0.6731 MB / 438.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.3787, allocations: 367.4 kB / 439.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008635/0.3874, allocations: 8.306 MB / 447.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.389, allocations: 111.8 kB / 447.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.3891, allocations: 75.98 kB / 447.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.674e-06/0.3892, allocations: 4 kB / 447.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004235/0.3934, allocations: 2.638 MB / 450.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/0.3934, allocations: 12 kB / 450.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.3949, allocations: 0.6673 MB / 450.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.3961, allocations: 363.4 kB / 451.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008728/0.4049, allocations: 8.293 MB / 459.6 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/0.4065, allocations: 107.8 kB / 459.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002045/0.4067, allocations: 72.06 kB / 459.8 MB, free: 1.883 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,9,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001728/0.4085, allocations: 0.9298 MB / 460.7 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005021/0.409, allocations: 205.5 kB / 460.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004524/0.4135, allocations: 2.559 MB / 463.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.4135, allocations: 12 kB / 463.5 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4136, allocations: 4 kB / 463.5 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.4136, allocations: 8.203 kB / 463.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009342/0.4229, allocations: 5.461 MB / 468.9 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.423, allocations: 0 / 468.9 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009522/0.4239, allocations: 223.7 kB / 469.2 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.4256, allocations: 0.6866 MB / 469.8 MB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.4257, allocations: 36 kB / 469.9 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.4362, allocations: 9.782 MB / 479.7 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.4363, allocations: 4 kB / 479.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005881/0.4422, allocations: 3.761 MB / 483.4 MB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.4433, allocations: 474.5 kB / 483.9 MB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006777/0.444, allocations: 35.98 kB / 483.9 MB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.4453, allocations: 99.83 kB / 484 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002883/0.4456, allocations: 117.1 kB / 484.1 MB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.831e-05/0.4457, allocations: 40 kB / 484.2 MB, free: 8.734 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002244/0.448, allocations: 1.26 MB / 485.4 MB, free: 7.484 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.448, allocations: 0 / 485.4 MB, free: 7.484 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003699/0.4517, allocations: 1 MB / 486.4 MB, free: 6.484 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004288/0.4521, allocations: 210.9 kB / 486.6 MB, free: 6.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006469/0.4586, allocations: 4.501 MB / 491.1 MB, free: 1.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.4587, allocations: 8.125 kB / 491.2 MB, free: 1.652 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002411/0.4611, allocations: 1.726 MB / 492.9 MB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003712/0.4648, allocations: 0.5828 MB / 493.5 MB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.4753, allocations: 6.775 MB / 0.4885 GB, free: 8.477 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/0.4774, allocations: 2.079 MB / 0.4905 GB, free: 6.359 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005351/0.4779, allocations: 143.4 kB / 0.4907 GB, free: 6.219 MB / 414.1 MB Notification: Performance of SimCode: time 6.02e-07/0.478, allocations: 4 kB / 0.4907 GB, free: 6.215 MB / 414.1 MB Notification: Performance of Templates: time 0.2577/0.7356, allocations: 86.52 MB / 0.5752 GB, free: 113.6 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches