Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 176.5 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.3 MB / 241.4 MB, free: 11.72 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008945/0.0008944, allocations: 103.5 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 11.94 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2624, allocations: 50.39 MB / 402.8 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.3918, allocations: 107.8 MB / 0.4986 GB, free: 4.445 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.3921, allocations: 87.95 kB / 0.4987 GB, free: 4.359 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3621/0.7542, allocations: 58.15 MB / 0.5555 GB, free: 59.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.7543, allocations: 0 / 0.5555 GB, free: 59.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002925/0.7546, allocations: 75.94 kB / 0.5556 GB, free: 59.58 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008736/0.7633, allocations: 3.198 MB / 0.5587 GB, free: 56.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.7634, allocations: 8.031 kB / 0.5587 GB, free: 56.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002273/0.7657, allocations: 404.6 kB / 0.5591 GB, free: 55.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006774/0.7725, allocations: 2.129 MB / 0.5612 GB, free: 53.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002827/0.7728, allocations: 214.1 kB / 0.5614 GB, free: 53.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.7742, allocations: 288.2 kB / 0.5617 GB, free: 53.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009934/0.7842, allocations: 3.825 MB / 0.5654 GB, free: 49.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001099/0.7843, allocations: 8.109 kB / 0.5654 GB, free: 49.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004398/0.7848, allocations: 135.9 kB / 0.5655 GB, free: 49.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001392/0.7849, allocations: 109.5 kB / 0.5656 GB, free: 48.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007722/0.7927, allocations: 3.055 MB / 0.5686 GB, free: 45.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02437/0.8171, allocations: 11.8 MB / 0.5801 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00364/0.8207, allocations: 3.684 MB / 0.5837 GB, free: 29.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/0.823, allocations: 1.157 MB / 0.5849 GB, free: 28.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003178/0.8233, allocations: 134.4 kB / 0.585 GB, free: 28.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.8234, allocations: 55.91 kB / 0.585 GB, free: 28.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 4.599e-06/0.8234, allocations: 0 / 0.585 GB, free: 28.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.02104/0.8445, allocations: 8.311 MB / 0.5932 GB, free: 19.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.8445, allocations: 68.72 kB / 0.5932 GB, free: 19.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00389/0.8484, allocations: 2.021 MB / 0.5952 GB, free: 17.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002332/0.8487, allocations: 49.7 kB / 0.5952 GB, free: 17.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000989/0.8497, allocations: 1.363 MB / 0.5966 GB, free: 16.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004671/0.8502, allocations: 0.5352 MB / 0.5971 GB, free: 15.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.8503, allocations: 40 kB / 0.5971 GB, free: 15.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.8505, allocations: 381.9 kB / 0.5975 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.8523, allocations: 0.9057 MB / 0.5984 GB, free: 14.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/0.8544, allocations: 1.363 MB / 0.5997 GB, free: 12.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003368/0.8578, allocations: 2.359 MB / 0.602 GB, free: 10.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.8578, allocations: 4 kB / 0.602 GB, free: 10.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.00498/0.8628, allocations: 3.423 MB / 0.6054 GB, free: 6.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.8628, allocations: 12 kB / 0.6054 GB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.8628, allocations: 15.94 kB / 0.6054 GB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/0.8653, allocations: 1.044 MB / 0.6064 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.8663, allocations: 339.4 kB / 0.6067 GB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/0.8833, allocations: 19.24 MB / 0.6255 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.885, allocations: 107.9 kB / 0.6256 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.8852, allocations: 72 kB / 0.6257 GB, free: 0.582 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001809/0.887, allocations: 0.9461 MB / 0.6266 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000412/0.8875, allocations: 221.4 kB / 0.6268 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004673/0.8921, allocations: 2.837 MB / 0.6296 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.8922, allocations: 16 kB / 0.6296 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/0.8922, allocations: 8 kB / 0.6296 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.8922, allocations: 15.91 kB / 0.6296 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.9026, allocations: 6.031 MB / 0.6355 GB, free: 6.316 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.9027, allocations: 8.281 kB / 0.6355 GB, free: 6.309 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/0.9034, allocations: 191.7 kB / 0.6357 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/0.9057, allocations: 0.9247 MB / 0.6366 GB, free: 5.168 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.9058, allocations: 32 kB / 0.6367 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01564/0.9215, allocations: 17.15 MB / 0.6534 GB, free: 2.785 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.9215, allocations: 4 kB / 0.6534 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006394/0.9279, allocations: 4.016 MB / 0.6573 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.9293, allocations: 494.3 kB / 0.6578 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004292/0.9298, allocations: 39.92 kB / 0.6578 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.9308, allocations: 120 kB / 0.658 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/0.9313, allocations: 145.1 kB / 0.6581 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.906e-05/0.9314, allocations: 43.94 kB / 0.6581 GB, free: 13.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002129/0.9335, allocations: 1.377 MB / 0.6595 GB, free: 12.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9335, allocations: 0 / 0.6595 GB, free: 12.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002569/0.9361, allocations: 0.7304 MB / 0.6602 GB, free: 11.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006588/0.9367, allocations: 406.2 kB / 0.6606 GB, free: 11.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00516/0.9419, allocations: 3.581 MB / 0.6641 GB, free: 7.598 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.9419, allocations: 4.25 kB / 0.6641 GB, free: 7.594 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002953/0.9449, allocations: 2.272 MB / 0.6663 GB, free: 5.203 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003943/0.9489, allocations: 0.6454 MB / 0.6669 GB, free: 4.559 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1891/1.138, allocations: 6.778 MB / 0.6735 GB, free: 114.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001822/1.14, allocations: 2.305 MB / 0.6758 GB, free: 113.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001555/1.141, allocations: 484.3 kB / 0.6763 GB, free: 113.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/1.142, allocations: 132 kB / 0.6764 GB, free: 113.7 MB / 442.7 MB Notification: Performance of SimCode: time 7.52e-07/1.142, allocations: 2.625 kB / 0.6764 GB, free: 113.7 MB / 442.7 MB Notification: Performance of Templates: time 0.06153/1.203, allocations: 41.35 MB / 0.7168 GB, free: 105.4 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches