Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 195.5 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.5 MB / 245.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007474/0.0007474, allocations: 92.8 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002013, allocations: 11.98 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.1876, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2597/0.4473, allocations: 108.6 MB / 0.5051 GB, free: 97.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.4476, allocations: 87.17 kB / 0.5052 GB, free: 97.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1225/0.5701, allocations: 58.26 MB / 0.5621 GB, free: 50.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5701, allocations: 0 / 0.5621 GB, free: 50.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001593/0.5703, allocations: 79.92 kB / 0.5622 GB, free: 50.17 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.004746/0.575, allocations: 3.202 MB / 0.5653 GB, free: 46.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.5751, allocations: 8.031 kB / 0.5653 GB, free: 46.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008202/0.5759, allocations: 404.6 kB / 0.5657 GB, free: 46.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002854/0.5788, allocations: 2.121 MB / 0.5678 GB, free: 44.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.656e-05/0.5789, allocations: 210.1 kB / 0.568 GB, free: 44.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003188/0.5792, allocations: 296.3 kB / 0.5682 GB, free: 43.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004669/0.5839, allocations: 3.826 MB / 0.572 GB, free: 39.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.49e-05/0.584, allocations: 8.125 kB / 0.572 GB, free: 39.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002488/0.5842, allocations: 123.9 kB / 0.5721 GB, free: 39.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.718e-05/0.5843, allocations: 121.5 kB / 0.5722 GB, free: 39.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004059/0.5884, allocations: 3.055 MB / 0.5752 GB, free: 36.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.6018, allocations: 11.79 MB / 0.5867 GB, free: 24.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002221/0.604, allocations: 3.688 MB / 0.5903 GB, free: 20.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.6054, allocations: 1.149 MB / 0.5914 GB, free: 19.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002403/0.6056, allocations: 142.4 kB / 0.5916 GB, free: 18.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.6057, allocations: 43.88 kB / 0.5916 GB, free: 18.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.296e-06/0.6057, allocations: 0 / 0.5916 GB, free: 18.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.01333/0.619, allocations: 8.313 MB / 0.5997 GB, free: 10.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.6191, allocations: 72.72 kB / 0.5998 GB, free: 10.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/0.6214, allocations: 2.029 MB / 0.6018 GB, free: 8.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.6215, allocations: 53.7 kB / 0.6018 GB, free: 8.168 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005864/0.6221, allocations: 1.351 MB / 0.6032 GB, free: 6.801 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.6223, allocations: 0.5353 MB / 0.6037 GB, free: 6.258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.872e-05/0.6225, allocations: 36 kB / 0.6037 GB, free: 6.223 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.6225, allocations: 381.9 kB / 0.6041 GB, free: 5.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.6237, allocations: 0.9134 MB / 0.605 GB, free: 4.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.625, allocations: 1.359 MB / 0.6063 GB, free: 3.383 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.6274, allocations: 2.363 MB / 0.6086 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.6274, allocations: 8 kB / 0.6086 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005633/0.6331, allocations: 3.423 MB / 0.612 GB, free: 13.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.6331, allocations: 12 kB / 0.612 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.6331, allocations: 12 kB / 0.612 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/0.6359, allocations: 1.043 MB / 0.613 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.637, allocations: 331.5 kB / 0.6133 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01778/0.6548, allocations: 19.26 MB / 0.6321 GB, free: 7.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.6563, allocations: 103.9 kB / 0.6322 GB, free: 7.242 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.6565, allocations: 72 kB / 0.6323 GB, free: 7.172 MB / 410.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.0017/0.6582, allocations: 0.946 MB / 0.6332 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/0.6586, allocations: 221.4 kB / 0.6334 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/0.6634, allocations: 2.837 MB / 0.6362 GB, free: 3.113 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.6634, allocations: 19.98 kB / 0.6362 GB, free: 3.094 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.6634, allocations: 8 kB / 0.6362 GB, free: 3.086 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.6634, allocations: 7.969 kB / 0.6362 GB, free: 3.078 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009641/0.6731, allocations: 6.035 MB / 0.6421 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.6731, allocations: 4 kB / 0.6421 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007363/0.6738, allocations: 187.7 kB / 0.6423 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002289/0.6761, allocations: 0.925 MB / 0.6432 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.97e-05/0.6763, allocations: 32 kB / 0.6432 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01543/0.6917, allocations: 17.15 MB / 0.66 GB, free: 9.375 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.6917, allocations: 4.047 kB / 0.66 GB, free: 9.371 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006202/0.6979, allocations: 4.024 MB / 0.6639 GB, free: 5.273 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.699, allocations: 494.3 kB / 0.6644 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.6992, allocations: 35.92 kB / 0.6644 GB, free: 4.734 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000984/0.7002, allocations: 119.9 kB / 0.6645 GB, free: 4.617 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.7006, allocations: 145 kB / 0.6647 GB, free: 4.473 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.7007, allocations: 43.98 kB / 0.6647 GB, free: 4.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00202/0.7027, allocations: 1.377 MB / 0.6661 GB, free: 3.031 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7027, allocations: 0 / 0.6661 GB, free: 3.031 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002241/0.705, allocations: 0.7227 MB / 0.6668 GB, free: 2.309 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.0006075/0.7056, allocations: 420.1 kB / 0.6672 GB, free: 1.895 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.1607/0.8663, allocations: 3.57 MB / 0.6707 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.8664, allocations: 1.625 kB / 0.6707 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.869, allocations: 2.28 MB / 0.6729 GB, free: 108.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003294/0.8723, allocations: 0.6557 MB / 0.6735 GB, free: 108.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007461/0.8798, allocations: 6.804 MB / 0.6802 GB, free: 106 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001566/0.8814, allocations: 2.266 MB / 0.6824 GB, free: 105.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004352/0.8818, allocations: 138.9 kB / 0.6825 GB, free: 105.2 MB / 442.7 MB Notification: Performance of SimCode: time 6.51e-07/0.8819, allocations: 0 / 0.6825 GB, free: 105.2 MB / 442.7 MB Notification: Performance of Templates: time 0.291/1.173, allocations: 175.3 MB / 0.8537 GB, free: 139.6 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches