Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_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_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000887/0.000887, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002661, allocations: 4 kB / 307.1 MB, free: 1.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1154, allocations: 51.52 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01192/0.1274, allocations: 10.15 MB / 368.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008209/0.1356, allocations: 3.386 MB / 372.2 MB, free: 32 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.2053/0.341, allocations: 58.17 kB / 372.2 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002932/0.344, allocations: 0.6702 MB / 372.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003652/0.3477, allocations: 0.8207 MB / 373.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.3488, allocations: 272.3 kB / 374 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009278/0.3581, allocations: 3.927 MB / 377.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004435/0.3626, allocations: 1.95 MB / 379.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003987/0.3666, allocations: 1.237 MB / 381.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004441/0.3711, allocations: 1.618 MB / 382.7 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008439/0.3719, allocations: 182.7 kB / 382.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.3737, allocations: 254.2 kB / 383.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.3751, allocations: 0.9146 MB / 384.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001965/0.3771, allocations: 0.6667 MB / 384.7 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005875/0.383, allocations: 4.413 MB / 389.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.383, allocations: 0 / 389.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.383, allocations: 5.219 kB / 389.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002161/0.3832, allocations: 0 / 389.1 MB, free: 5.781 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.009409/0.3927, allocations: 3.26 MB / 392.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.3927, allocations: 16.38 kB / 392.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.3948, allocations: 391.4 kB / 392.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005085/0.3999, allocations: 1.925 MB / 394.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/0.4001, allocations: 214 kB / 394.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000625/0.4007, allocations: 284.7 kB / 395.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007908/0.4087, allocations: 3.838 MB / 399 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.116e-05/0.4087, allocations: 12.38 kB / 399.1 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002686/0.409, allocations: 115.8 kB / 399.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/0.4092, allocations: 125.4 kB / 399.3 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005555/0.4147, allocations: 3.237 MB / 402.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02002/0.4348, allocations: 11.97 MB / 414.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003521/0.4383, allocations: 3.67 MB / 418.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/0.4404, allocations: 1.24 MB / 419.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002813/0.4407, allocations: 118.4 kB / 419.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.4407, allocations: 55.86 kB / 419.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.166e-06/0.4407, allocations: 0 / 419.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01465/0.4554, allocations: 7.344 MB / 426.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.4555, allocations: 72.61 kB / 427 MB, free: 4.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003255/0.4587, allocations: 2.052 MB / 429 MB, free: 2.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.4589, allocations: 53.7 kB / 429.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.4599, allocations: 1.372 MB / 430.5 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000452/0.4604, allocations: 0.5108 MB / 431 MB, free: 448 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-05/0.4605, allocations: 40 kB / 431 MB, free: 408 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.4607, allocations: 373.9 kB / 431.4 MB, free: 28 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.4621, allocations: 0.8682 MB / 432.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/0.4639, allocations: 1.361 MB / 433.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/0.4656, allocations: 1.1 MB / 434.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.4656, allocations: 4 kB / 434.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005519/0.4711, allocations: 3.255 MB / 438 MB, free: 9.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.4712, allocations: 12 kB / 438 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.4712, allocations: 12 kB / 438 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002269/0.4735, allocations: 0.8554 MB / 438.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4746, allocations: 347.4 kB / 439.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01748/0.4921, allocations: 18.82 MB / 458 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00335/0.4955, allocations: 99.89 kB / 458.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004066/0.496, allocations: 79.98 kB / 458.2 MB, free: 3.48 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 (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 (194): * Single equations (assignments): 183 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003827/0.4998, allocations: 0.9305 MB / 459.1 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.5009, allocations: 221.3 kB / 459.3 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007251/0.5081, allocations: 2.623 MB / 462 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/0.5082, allocations: 16 kB / 462 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.44e-05/0.5082, allocations: 19.95 kB / 462 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.303e-05/0.5083, allocations: 7.969 kB / 462 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/0.5258, allocations: 5.898 MB / 467.9 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.047e-05/0.5259, allocations: 3.953 kB / 467.9 MB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/0.5275, allocations: 202.1 kB / 468.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003764/0.5313, allocations: 0.7269 MB / 468.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001683/0.5314, allocations: 36.08 kB / 468.9 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02585/0.5573, allocations: 16.73 MB / 485.6 MB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.465e-05/0.5574, allocations: 7.938 kB / 485.6 MB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/0.5691, allocations: 3.789 MB / 489.4 MB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002308/0.5714, allocations: 486.3 kB / 489.9 MB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005695/0.572, allocations: 35.98 kB / 489.9 MB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002036/0.5741, allocations: 112 kB / 490 MB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005469/0.5746, allocations: 145 kB / 490.1 MB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.5748, allocations: 47.94 kB / 490.2 MB, free: 1.766 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004116/0.579, allocations: 1.388 MB / 491.6 MB, free: 364 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.114e-06/0.579, allocations: 0 / 491.6 MB, free: 364 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.005404/0.5844, allocations: 0.6625 MB / 492.2 MB, free: 15.7 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 (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 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006017/0.585, allocations: 166.4 kB / 492.4 MB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008947/0.594, allocations: 3.434 MB / 495.8 MB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.605e-05/0.5941, allocations: 6 kB / 495.8 MB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005085/0.5992, allocations: 2.2 MB / 498 MB, free: 9.629 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007631/0.6068, allocations: 0.6525 MB / 498.7 MB, free: 8.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/0.6251, allocations: 6.735 MB / 0.4936 GB, free: 2.184 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003201/0.6284, allocations: 2.284 MB / 0.4958 GB, free: 15.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001982/0.6304, allocations: 0.491 MB / 0.4963 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.6307, allocations: 127.4 kB / 0.4964 GB, free: 15.25 MB / 430.1 MB Notification: Performance of SimCode: time 9.21e-07/0.6308, allocations: 4 kB / 0.4964 GB, free: 15.25 MB / 430.1 MB Notification: Performance of Templates: time 0.2766/0.9074, allocations: 35.22 MB / 0.5308 GB, free: 142 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches