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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.0015, allocations: 111.3 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009512/0.0009513, allocations: 51.2 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09158/0.09255, allocations: 49.43 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01406/0.1067, allocations: 11.41 MB / 362.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006935/0.1137, allocations: 3.548 MB / 366.5 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.1154, allocations: 67.69 kB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002264/0.1177, allocations: 0.8306 MB / 367.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003073/0.1208, allocations: 0.9201 MB / 368.3 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.122, allocations: 439.4 kB / 368.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1701/0.2921, allocations: 3.744 MB / 372.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004642/0.2968, allocations: 2.873 MB / 375.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002686/0.2995, allocations: 1.652 MB / 377 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003583/0.3031, allocations: 1.965 MB / 378.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009456/0.3041, allocations: 424.1 kB / 379.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001488/0.3056, allocations: 0.4929 MB / 379.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.3068, allocations: 1.198 MB / 381 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002313/0.3091, allocations: 1.929 MB / 383 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005012/0.3141, allocations: 5.546 MB / 388.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3141, allocations: 0 / 388.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3142, allocations: 0 / 388.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001102/0.3143, allocations: 3.156 kB / 388.5 MB, free: 7.426 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006573/0.3208, allocations: 3.816 MB / 392.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3209, allocations: 9.625 kB / 392.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008765/0.3218, allocations: 391.9 kB / 392.7 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003317/0.3251, allocations: 2.052 MB / 394.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.3252, allocations: 219.2 kB / 395 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003298/0.3256, allocations: 282.4 kB / 395.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005092/0.3307, allocations: 3.858 MB / 399.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.498e-05/0.3307, allocations: 9.312 kB / 399.1 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/0.331, allocations: 125.6 kB / 399.3 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.108e-05/0.3311, allocations: 125 kB / 399.4 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004838/0.3359, allocations: 3.248 MB / 402.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/0.3544, allocations: 11.78 MB / 414.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003379/0.3578, allocations: 3.66 MB / 418.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002007/0.3598, allocations: 1.232 MB / 419.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.3601, allocations: 133.5 kB / 419.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.3602, allocations: 47.88 kB / 419.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 2.916e-06/0.3602, allocations: 3.938 kB / 419.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01443/0.3746, allocations: 7.322 MB / 426.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/0.3747, allocations: 68.72 kB / 426.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.3782, allocations: 2.067 MB / 428.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.3783, allocations: 49.7 kB / 429 MB, free: 2.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008942/0.3793, allocations: 1.368 MB / 430.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.3797, allocations: 0.5055 MB / 430.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005417/0.3802, allocations: 347.2 kB / 431.2 MB, free: 364 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3803, allocations: 305.1 kB / 431.5 MB, free: 56 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.3816, allocations: 0.8671 MB / 432.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.3831, allocations: 1.372 MB / 433.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/0.3859, allocations: 2.324 MB / 436.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.386, allocations: 4 kB / 436.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005338/0.3913, allocations: 3.281 MB / 439.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.3913, allocations: 12 kB / 439.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.3914, allocations: 12 kB / 439.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002146/0.3935, allocations: 0.8567 MB / 440.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.3946, allocations: 332.9 kB / 440.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01726/0.4119, allocations: 20.59 MB / 461.1 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.4141, allocations: 91.83 kB / 461.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/0.4143, allocations: 76 kB / 461.3 MB, free: 0.5156 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001984/0.4163, allocations: 0.9457 MB / 462.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005732/0.4168, allocations: 217.4 kB / 462.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.4211, allocations: 2.633 MB / 465.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.4211, allocations: 16 kB / 465.1 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.4211, allocations: 8 kB / 465.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.4212, allocations: 7.969 kB / 465.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009757/0.4309, allocations: 5.87 MB / 471 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.431, allocations: 4 kB / 471 MB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007243/0.4317, allocations: 193.9 kB / 471.2 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.4335, allocations: 0.7414 MB / 471.9 MB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4336, allocations: 32 kB / 472 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01657/0.4502, allocations: 18.16 MB / 490.1 MB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4503, allocations: 8 kB / 490.1 MB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006165/0.4564, allocations: 3.799 MB / 493.9 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/0.4581, allocations: 478.3 kB / 494.4 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.4584, allocations: 43.92 kB / 494.4 MB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.4594, allocations: 103.9 kB / 494.5 MB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003268/0.4598, allocations: 140.5 kB / 494.7 MB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-05/0.4599, allocations: 43.98 kB / 494.7 MB, free: 13.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002031/0.4619, allocations: 1.404 MB / 496.1 MB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4619, allocations: 0 / 496.1 MB, free: 12.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002405/0.4643, allocations: 0.6523 MB / 496.8 MB, free: 11.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003876/0.4647, allocations: 219.5 kB / 497 MB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004424/0.4692, allocations: 3.454 MB / 0.4887 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.4692, allocations: 320 / 0.4887 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002527/0.4717, allocations: 2.201 MB / 0.4909 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.4745, allocations: 0.667 MB / 0.4915 GB, free: 4.762 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00858/0.4831, allocations: 5.669 MB / 0.497 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001947/0.4851, allocations: 2.288 MB / 0.4993 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00135/0.4864, allocations: 498.7 kB / 0.4998 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000357/0.4868, allocations: 139.4 kB / 0.4999 GB, free: 12.1 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4868, allocations: 4 kB / 0.4999 GB, free: 12.1 MB / 430.1 MB Notification: Performance of Templates: time 0.2248/0.7116, allocations: 35.94 MB / 0.535 GB, free: 147 MB / 446.1 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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