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.0007972/0.0007972, allocations: 94.34 kB / 17.31 MB, free: 6.535 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.0008528/0.0008528, allocations: 175.2 kB / 18.21 MB, free: 5.684 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.134/1.134, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002062/0.0002061, allocations: 7.938 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07148/0.0717, allocations: 50.43 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009571/0.0813, allocations: 10.76 MB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005115/0.08644, allocations: 3.466 MB / 366.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.08762, allocations: 59.69 kB / 366.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.08903, allocations: 0.7381 MB / 367.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.09069, allocations: 0.8469 MB / 368.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006237/0.09132, allocations: 387.5 kB / 368.8 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1345/0.2259, allocations: 4.406 MB / 373.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002997/0.2289, allocations: 2.382 MB / 375.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001741/0.2307, allocations: 1.242 MB / 376.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002418/0.2331, allocations: 1.679 MB / 378.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000697/0.2338, allocations: 182.8 kB / 378.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009218/0.2347, allocations: 286.9 kB / 378.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000797/0.2355, allocations: 0.9167 MB / 379.8 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001385/0.2369, allocations: 1.642 MB / 381.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.2399, allocations: 4.407 MB / 385.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.24, allocations: 1.031 kB / 385.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.24, allocations: 0 / 385.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.606e-05/0.24, allocations: 0 / 385.9 MB, free: 8.137 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.004606/0.2446, allocations: 3.227 MB / 389.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2447, allocations: 9.125 kB / 389.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000756/0.2454, allocations: 393.2 kB / 389.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/0.2477, allocations: 1.992 MB / 391.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.2478, allocations: 211.5 kB / 391.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003561/0.2482, allocations: 278.7 kB / 392 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004701/0.2529, allocations: 3.868 MB / 395.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.78e-05/0.253, allocations: 14.08 kB / 395.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.2532, allocations: 120.7 kB / 396 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-05/0.2533, allocations: 122.5 kB / 396.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.2571, allocations: 3.258 MB / 399.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.2715, allocations: 11.97 MB / 411.3 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002816/0.2743, allocations: 3.65 MB / 415 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.2761, allocations: 1.24 MB / 416.2 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002165/0.2763, allocations: 125 kB / 416.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.2764, allocations: 54.5 kB / 416.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 4.549e-06/0.2764, allocations: 3.984 kB / 416.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01196/0.2883, allocations: 7.377 MB / 423.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.2884, allocations: 68.72 kB / 423.8 MB, free: 8.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.2909, allocations: 2.061 MB / 425.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.071e-05/0.291, allocations: 53.7 kB / 426 MB, free: 6.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008359/0.2918, allocations: 1.369 MB / 427.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000335/0.2922, allocations: 0.507 MB / 427.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.2924, allocations: 161.6 kB / 428 MB, free: 3.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.036e-05/0.2925, allocations: 301.1 kB / 428.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.2936, allocations: 0.8744 MB / 429.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.2951, allocations: 1.369 MB / 430.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00265/0.2978, allocations: 2.333 MB / 432.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.2978, allocations: 4 kB / 432.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004664/0.3024, allocations: 3.286 MB / 436.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.3025, allocations: 12 kB / 436.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.3025, allocations: 15.94 kB / 436.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001939/0.3044, allocations: 0.8485 MB / 437 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.3055, allocations: 346 kB / 437.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/0.3196, allocations: 18.85 MB / 456.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.321, allocations: 95.83 kB / 456.3 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.3212, allocations: 76.16 kB / 456.4 MB, free: 5.898 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.001495/0.3227, allocations: 0.9478 MB / 457.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.3229, allocations: 213.4 kB / 457.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003861/0.3268, allocations: 2.632 MB / 460.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.3268, allocations: 19.98 kB / 460.2 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.622e-05/0.3268, allocations: 8 kB / 460.2 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3269, allocations: 3.984 kB / 460.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007862/0.3347, allocations: 5.917 MB / 466.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.3347, allocations: 4.469 kB / 466.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006689/0.3354, allocations: 201.7 kB / 466.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001582/0.337, allocations: 0.7253 MB / 467 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.001e-05/0.3371, allocations: 39.98 kB / 467.1 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/0.3494, allocations: 16.74 MB / 483.8 MB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3495, allocations: 7.375 kB / 483.8 MB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005012/0.3545, allocations: 3.808 MB / 487.6 MB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008988/0.3554, allocations: 474.4 kB / 488.1 MB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003709/0.3558, allocations: 39.92 kB / 488.1 MB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.3568, allocations: 119.9 kB / 488.3 MB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/0.3571, allocations: 136.5 kB / 488.4 MB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-05/0.3572, allocations: 47.55 kB / 488.4 MB, free: 4.355 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001949/0.3592, allocations: 1.404 MB / 489.8 MB, free: 2.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3592, allocations: 0 / 489.8 MB, free: 2.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002131/0.3613, allocations: 0.6562 MB / 490.5 MB, free: 2.273 MB / 398.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.0003529/0.3617, allocations: 219.7 kB / 490.7 MB, free: 2.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004115/0.3658, allocations: 3.45 MB / 494.2 MB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.3658, allocations: 4.062 kB / 494.2 MB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002234/0.368, allocations: 2.2 MB / 496.4 MB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/0.3713, allocations: 0.64 MB / 497 MB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008649/0.38, allocations: 7.056 MB / 0.4922 GB, free: 4.441 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001882/0.3819, allocations: 2.256 MB / 0.4945 GB, free: 2.148 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004064/0.3823, allocations: 139.4 kB / 0.4946 GB, free: 2.012 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3823, allocations: 0 / 0.4946 GB, free: 2.012 MB / 414.1 MB Notification: Performance of Templates: time 0.2565/0.6388, allocations: 187.4 MB / 0.6776 GB, free: 12.09 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 -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