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.001162/0.001162, allocations: 101 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.3 MB, free: 9.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.61 kB / 306.3 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1107, allocations: 50.54 MB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01319/0.1239, allocations: 11.37 MB / 368.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1769/0.3008, allocations: 3.543 MB / 371.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002011/0.3029, allocations: 65.31 kB / 371.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002487/0.3054, allocations: 0.7385 MB / 372.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003272/0.3087, allocations: 0.8572 MB / 373.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001366/0.3101, allocations: 387.3 kB / 373.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006123/0.3162, allocations: 4.414 MB / 378.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003801/0.32, allocations: 2.406 MB / 380.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003077/0.3231, allocations: 1.431 MB / 382 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00418/0.3273, allocations: 1.909 MB / 383.9 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002024/0.3293, allocations: 261.7 kB / 384.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002755/0.3321, allocations: 362 kB / 384.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002493/0.3346, allocations: 1.037 MB / 385.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004254/0.3389, allocations: 1.763 MB / 387.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004307/0.3432, allocations: 5.338 MB / 392.7 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3432, allocations: 0 / 392.7 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3432, allocations: 0 / 392.7 MB, free: 2.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.576e-05/0.3433, allocations: 1.375 kB / 392.7 MB, free: 2.016 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.007625/0.351, allocations: 3.823 MB / 396.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.351, allocations: 8 kB / 396.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.3521, allocations: 390.5 kB / 396.9 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003214/0.3553, allocations: 1.991 MB / 398.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.3555, allocations: 215.6 kB / 399.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004246/0.3559, allocations: 285.3 kB / 399.4 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00702/0.3629, allocations: 3.862 MB / 403.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.904e-05/0.363, allocations: 5.5 kB / 403.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002691/0.3633, allocations: 116 kB / 403.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.3634, allocations: 125.5 kB / 403.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00552/0.369, allocations: 3.25 MB / 406.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01929/0.3883, allocations: 11.91 MB / 418.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003464/0.3918, allocations: 3.657 MB / 422.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002191/0.394, allocations: 1.253 MB / 423.5 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000329/0.3943, allocations: 122.4 kB / 423.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.983e-05/0.3944, allocations: 47.88 kB / 423.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 5.12e-06/0.3945, allocations: 0 / 423.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01652/0.411, allocations: 7.333 MB / 431 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.4111, allocations: 68.72 kB / 431.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/0.4149, allocations: 2.064 MB / 433.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.4151, allocations: 49.7 kB / 433.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.4161, allocations: 1.368 MB / 434.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004295/0.4165, allocations: 0.509 MB / 435.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005989/0.4171, allocations: 352.1 kB / 435.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4172, allocations: 313.1 kB / 435.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.4187, allocations: 0.8627 MB / 436.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.4204, allocations: 1.365 MB / 438 MB, free: 6.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003179/0.4236, allocations: 2.326 MB / 440.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.4236, allocations: 4 kB / 440.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005867/0.4295, allocations: 3.281 MB / 443.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.4296, allocations: 8 kB / 443.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.4296, allocations: 16 kB / 443.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00241/0.432, allocations: 0.8494 MB / 444.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4332, allocations: 347.4 kB / 444.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/0.4494, allocations: 18.84 MB / 463.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/0.4514, allocations: 91.83 kB / 463.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000308/0.4517, allocations: 80.17 kB / 463.8 MB, free: 10.91 MB / 382.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.00213/0.4538, allocations: 0.9421 MB / 464.7 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006339/0.4545, allocations: 225.4 kB / 464.9 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004919/0.4594, allocations: 2.625 MB / 467.6 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.4595, allocations: 16 kB / 467.6 MB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.423e-05/0.4595, allocations: 4 kB / 467.6 MB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.4595, allocations: 11.97 kB / 467.6 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/0.4721, allocations: 5.908 MB / 473.5 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.4721, allocations: 4 kB / 473.5 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007924/0.4729, allocations: 195.7 kB / 473.7 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002019/0.4749, allocations: 0.7373 MB / 474.4 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.4751, allocations: 35.94 kB / 474.5 MB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/0.4905, allocations: 16.73 MB / 491.2 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.4905, allocations: 4 kB / 491.2 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006743/0.4973, allocations: 3.804 MB / 495 MB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001777/0.4991, allocations: 478.3 kB / 495.5 MB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000897/0.5, allocations: 39.92 kB / 495.5 MB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/0.5016, allocations: 103.9 kB / 495.6 MB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004119/0.502, allocations: 141 kB / 495.8 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/0.5022, allocations: 47.98 kB / 495.8 MB, free: 9.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003144/0.5054, allocations: 1.404 MB / 497.2 MB, free: 7.742 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5054, allocations: 0 / 497.2 MB, free: 7.742 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003565/0.509, allocations: 0.6562 MB / 497.9 MB, free: 7.086 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.000572/0.5095, allocations: 204.5 kB / 498.1 MB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005485/0.515, allocations: 3.443 MB / 0.4898 GB, free: 3.297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/0.5151, allocations: 2 kB / 0.4898 GB, free: 3.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002991/0.5181, allocations: 2.208 MB / 0.4919 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004619/0.5227, allocations: 0.6404 MB / 0.4925 GB, free: 332 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.535, allocations: 6.952 MB / 0.4993 GB, free: 9.305 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003154/0.5382, allocations: 2.299 MB / 0.5016 GB, free: 6.977 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002056/0.5403, allocations: 0.4948 MB / 0.5021 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005531/0.5409, allocations: 131.4 kB / 0.5022 GB, free: 6.352 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5409, allocations: 0 / 0.5022 GB, free: 6.352 MB / 430.1 MB Notification: Performance of Templates: time 0.2351/0.776, allocations: 36.76 MB / 0.5381 GB, free: 133.1 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