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.001386/0.001386, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001655/0.001655, allocations: 205.8 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59.16 kB / 306.9 MB, free: 1.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08846, allocations: 50.54 MB / 357.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01202/0.1005, allocations: 11.36 MB / 368.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1622/0.2628, allocations: 3.542 MB / 372.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002055/0.2649, allocations: 66 kB / 372.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002577/0.2675, allocations: 0.7356 MB / 373.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00287/0.2704, allocations: 0.8559 MB / 374 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.2717, allocations: 385.3 kB / 374.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0054/0.2771, allocations: 4.423 MB / 378.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00359/0.2807, allocations: 2.402 MB / 381.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00306/0.2838, allocations: 1.437 MB / 382.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003312/0.2871, allocations: 1.908 MB / 384.6 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007221/0.2879, allocations: 261.9 kB / 384.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.2892, allocations: 358.6 kB / 385.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.2902, allocations: 1.034 MB / 386.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002006/0.2922, allocations: 1.764 MB / 388 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003179/0.2954, allocations: 4.523 MB / 392.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2954, allocations: 1 kB / 392.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2954, allocations: 0 / 392.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.459e-05/0.2955, allocations: 0 / 392.5 MB, free: 2.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.006555/0.3021, allocations: 3.823 MB / 396.3 MB, free: 224 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3021, allocations: 12.12 kB / 396.3 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009619/0.3031, allocations: 390.8 kB / 396.7 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003238/0.3064, allocations: 1.992 MB / 398.7 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.3065, allocations: 215.3 kB / 398.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003654/0.3069, allocations: 284 kB / 399.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006181/0.3131, allocations: 3.866 MB / 403 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.3131, allocations: 4 kB / 403 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/0.3134, allocations: 116 kB / 403.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.3135, allocations: 125.5 kB / 403.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005071/0.3186, allocations: 3.246 MB / 406.5 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/0.3366, allocations: 11.91 MB / 418.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003151/0.3398, allocations: 3.653 MB / 422.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/0.3417, allocations: 1.245 MB / 423.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002469/0.342, allocations: 126.4 kB / 423.5 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.342, allocations: 43.88 kB / 423.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 2.975e-06/0.3421, allocations: 0 / 423.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01413/0.3562, allocations: 7.335 MB / 430.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.3563, allocations: 68.72 kB / 430.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002944/0.3592, allocations: 2.064 MB / 433 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.3594, allocations: 49.7 kB / 433 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009263/0.3603, allocations: 1.373 MB / 434.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003896/0.3607, allocations: 0.5149 MB / 434.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005323/0.3613, allocations: 351.8 kB / 435.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.201e-05/0.3614, allocations: 309.1 kB / 435.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.3627, allocations: 0.8666 MB / 436.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.3643, allocations: 1.369 MB / 437.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/0.3672, allocations: 2.323 MB / 440.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.3672, allocations: 7.984 kB / 440.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005417/0.3726, allocations: 3.273 MB / 443.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.3727, allocations: 12 kB / 443.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.3727, allocations: 12 kB / 443.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.375, allocations: 0.8507 MB / 444.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.3761, allocations: 343.4 kB / 444.6 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01643/0.3926, allocations: 18.84 MB / 463.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.3945, allocations: 95.89 kB / 463.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002689/0.3948, allocations: 76.05 kB / 463.6 MB, free: 11.77 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.001895/0.3967, allocations: 0.9537 MB / 464.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000581/0.3973, allocations: 217.4 kB / 464.8 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004505/0.4018, allocations: 2.625 MB / 467.4 MB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.4018, allocations: 16 kB / 467.4 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.062e-05/0.4019, allocations: 8 kB / 467.4 MB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.4019, allocations: 7.969 kB / 467.4 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.4122, allocations: 5.904 MB / 473.3 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/0.4122, allocations: 4.109 kB / 473.3 MB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007755/0.413, allocations: 199.6 kB / 473.5 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.415, allocations: 0.7358 MB / 474.3 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.4151, allocations: 35.98 kB / 474.3 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01514/0.4302, allocations: 16.73 MB / 491 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.4303, allocations: 7.938 kB / 491 MB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006382/0.4367, allocations: 3.797 MB / 494.8 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.4381, allocations: 474.3 kB / 495.3 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006484/0.4387, allocations: 43.92 kB / 495.3 MB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.4401, allocations: 107.9 kB / 495.5 MB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003552/0.4405, allocations: 141 kB / 495.6 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.4406, allocations: 47.98 kB / 495.6 MB, free: 10.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002501/0.4431, allocations: 1.404 MB / 497 MB, free: 8.602 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4432, allocations: 0 / 497 MB, free: 8.602 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002878/0.446, allocations: 0.6562 MB / 497.7 MB, free: 7.945 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.0004838/0.4465, allocations: 216.5 kB / 497.9 MB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005098/0.4516, allocations: 3.431 MB / 0.4896 GB, free: 4.156 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.4517, allocations: 0 / 0.4896 GB, free: 4.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00265/0.4543, allocations: 2.206 MB / 0.4917 GB, free: 1.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003506/0.4579, allocations: 0.6402 MB / 0.4924 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.4685, allocations: 6.99 MB / 0.4992 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/0.4708, allocations: 2.256 MB / 0.5014 GB, free: 7.848 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000595/0.4714, allocations: 143.4 kB / 0.5015 GB, free: 7.711 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4714, allocations: 0 / 0.5015 GB, free: 7.711 MB / 430.1 MB Notification: Performance of Templates: time 0.2788/0.7502, allocations: 188 MB / 0.6852 GB, free: 8.949 MB / 462.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/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