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.001227/0.001227, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2294, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01932/0.2488, allocations: 11.45 MB / 421.4 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009819/0.2586, allocations: 3.579 MB / 425 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002291/0.261, allocations: 71.69 kB / 425 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003027/0.264, allocations: 0.8422 MB / 425.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003858/0.268, allocations: 0.924 MB / 426.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.2695, allocations: 439.4 kB / 427.2 MB, free: 216 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006048/0.2756, allocations: 3.767 MB / 431 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003698/0.2793, allocations: 2.862 MB / 433.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002448/0.2818, allocations: 1.666 MB / 435.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002859/0.2847, allocations: 1.969 MB / 437.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008923/0.2856, allocations: 420 kB / 437.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.2869, allocations: 0.4959 MB / 438.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.2884, allocations: 1.2 MB / 439.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002947/0.2913, allocations: 1.945 MB / 441.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005701/0.297, allocations: 5.549 MB / 447.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2971, allocations: 3.938 kB / 447.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2971, allocations: 0 / 447.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001971/0.2973, allocations: 0 / 447.1 MB, free: 12.22 MB / 366.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.008365/0.3057, allocations: 3.821 MB / 450.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3057, allocations: 8.031 kB / 450.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.3068, allocations: 392.6 kB / 451.3 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/0.3106, allocations: 2.055 MB / 453.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.3108, allocations: 214.1 kB / 453.6 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004632/0.3112, allocations: 287.8 kB / 453.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005539/0.3168, allocations: 3.853 MB / 457.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.488e-05/0.3169, allocations: 15.98 kB / 457.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.3171, allocations: 120 kB / 457.9 MB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.3172, allocations: 117.5 kB / 458 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004743/0.322, allocations: 3.258 MB / 461.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01795/0.34, allocations: 11.77 MB / 473 MB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003049/0.343, allocations: 3.656 MB / 476.7 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/0.345, allocations: 1.248 MB / 477.9 MB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002385/0.3453, allocations: 126.4 kB / 478 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.3453, allocations: 47.88 kB / 478.1 MB, free: 12.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.306e-06/0.3453, allocations: 0 / 478.1 MB, free: 12.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01313/0.3585, allocations: 7.331 MB / 485.4 MB, free: 4.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.3585, allocations: 76.66 kB / 485.5 MB, free: 4.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003081/0.3616, allocations: 2.056 MB / 487.5 MB, free: 2.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.3618, allocations: 53.7 kB / 487.6 MB, free: 2.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008721/0.3627, allocations: 1.374 MB / 489 MB, free: 1.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004066/0.3631, allocations: 0.5083 MB / 489.5 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005351/0.3636, allocations: 351.2 kB / 489.8 MB, free: 184 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.804e-05/0.3637, allocations: 301.1 kB / 490.1 MB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.365, allocations: 0.8744 MB / 491 MB, free: 15.01 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.3665, allocations: 1.369 MB / 492.3 MB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002738/0.3692, allocations: 2.322 MB / 494.7 MB, free: 10.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.3692, allocations: 4 kB / 494.7 MB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005141/0.3744, allocations: 3.273 MB / 497.9 MB, free: 7.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.3744, allocations: 12 kB / 498 MB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.3745, allocations: 16.5 kB / 498 MB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002129/0.3766, allocations: 0.8521 MB / 498.8 MB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.3778, allocations: 351.4 kB / 499.2 MB, free: 6.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/0.3936, allocations: 20.58 MB / 0.5076 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.3953, allocations: 99.83 kB / 0.5077 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/0.3956, allocations: 72 kB / 0.5077 GB, free: 16 kB / 430.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.001514/0.3971, allocations: 0.9455 MB / 0.5087 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004726/0.3976, allocations: 225.2 kB / 0.5089 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004167/0.4017, allocations: 2.629 MB / 0.5114 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.4018, allocations: 16 kB / 0.5115 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.198e-05/0.4018, allocations: 8 kB / 0.5115 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.4018, allocations: 3.984 kB / 0.5115 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009392/0.4112, allocations: 5.867 MB / 0.5172 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/0.4113, allocations: 4 kB / 0.5172 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/0.412, allocations: 204.1 kB / 0.5174 GB, free: 5.863 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/0.4137, allocations: 0.7341 MB / 0.5181 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.4138, allocations: 39.98 kB / 0.5182 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/0.4274, allocations: 18.15 MB / 0.5359 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4274, allocations: 4 kB / 0.5359 GB, free: 1.512 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1902/0.6177, allocations: 3.796 MB / 0.5396 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.6189, allocations: 478.5 kB / 0.54 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.6191, allocations: 36.83 kB / 0.5401 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.6201, allocations: 108.7 kB / 0.5402 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000314/0.6205, allocations: 142.7 kB / 0.5403 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.6206, allocations: 45.77 kB / 0.5404 GB, free: 120.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001594/0.6222, allocations: 1.409 MB / 0.5417 GB, free: 120.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6222, allocations: 1.062 kB / 0.5417 GB, free: 120.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001837/0.624, allocations: 0.6557 MB / 0.5424 GB, free: 120.7 MB / 462.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.0003124/0.6243, allocations: 214 kB / 0.5426 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003402/0.6277, allocations: 3.448 MB / 0.5459 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.6278, allocations: 9.969 kB / 0.546 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.6295, allocations: 2.195 MB / 0.5481 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.6318, allocations: 0.6811 MB / 0.5488 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006304/0.6381, allocations: 5.681 MB / 0.5543 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.6394, allocations: 2.259 MB / 0.5565 GB, free: 113 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004301/0.6399, allocations: 147.1 kB / 0.5567 GB, free: 112.9 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.6399, allocations: 0 / 0.5567 GB, free: 112.9 MB / 462.1 MB Notification: Performance of Templates: time 0.2923/0.9322, allocations: 188.7 MB / 0.741 GB, free: 180 MB / 0.5137 GB 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches