Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008274/0.0008275, allocations: 94.61 kB / 18.01 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009897/0.0009897, allocations: 203.4 kB / 18.94 MB, free: 4.719 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.7 MB / 247.5 MB, free: 9.457 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002358, allocations: 4 kB / 308.4 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09308/0.09333, allocations: 51.52 MB / 359.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.0113/0.1047, allocations: 10.3 MB / 370.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2026/0.3074, allocations: 3.594 MB / 373.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.3095, allocations: 58.5 kB / 373.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002567/0.3121, allocations: 0.7127 MB / 374.6 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003788/0.3159, allocations: 0.7785 MB / 375.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.3176, allocations: 400.8 kB / 375.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005487/0.3231, allocations: 3.267 MB / 379 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003676/0.3268, allocations: 2.288 MB / 381.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002395/0.3292, allocations: 1.034 MB / 382.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003028/0.3323, allocations: 1.464 MB / 383.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003712/0.3326, allocations: 151.7 kB / 383.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000858/0.3335, allocations: 270.7 kB / 384.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008754/0.3344, allocations: 0.8049 MB / 385 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.3359, allocations: 1.402 MB / 386.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003676/0.3396, allocations: 3.927 MB / 390.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3396, allocations: 1.156 kB / 390.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3397, allocations: 0 / 390.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001176/0.3398, allocations: 0 / 390.3 MB, free: 4.684 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006265/0.346, allocations: 2.864 MB / 393.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.3461, allocations: 12.78 kB / 393.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001443/0.3476, allocations: 349.9 kB / 393.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003104/0.3507, allocations: 1.776 MB / 395.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.3509, allocations: 192.9 kB / 395.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003914/0.3513, allocations: 253.5 kB / 395.8 MB, free: 1.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005502/0.3568, allocations: 3.281 MB / 399.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.808e-05/0.3569, allocations: 15.42 kB / 399.1 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002365/0.3571, allocations: 106 kB / 399.2 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.3572, allocations: 126.2 kB / 399.3 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004639/0.3619, allocations: 2.757 MB / 402.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01635/0.3782, allocations: 10.51 MB / 412.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.3802, allocations: 1.373 MB / 413.9 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.3815, allocations: 0.793 MB / 414.7 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003164/0.3818, allocations: 201.8 kB / 414.9 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.3819, allocations: 55.42 kB / 415 MB, free: 164 kB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.996e-06/0.3819, allocations: 4 kB / 415 MB, free: 160 kB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.016/0.3979, allocations: 6.954 MB / 421.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.398, allocations: 64.41 kB / 422 MB, free: 9.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003712/0.4017, allocations: 1.794 MB / 423.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.4019, allocations: 45.7 kB / 423.8 MB, free: 7.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.4029, allocations: 1.273 MB / 425.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.4034, allocations: 422.3 kB / 425.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/0.4036, allocations: 129.6 kB / 425.7 MB, free: 5.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4037, allocations: 309.1 kB / 426 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.405, allocations: 0.7769 MB / 426.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.4067, allocations: 1.297 MB / 428 MB, free: 2.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003005/0.4097, allocations: 2.215 MB / 430.2 MB, free: 308 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.611e-05/0.4097, allocations: 4 kB / 430.3 MB, free: 304 kB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004268/0.414, allocations: 2.478 MB / 432.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.414, allocations: 12.62 kB / 432.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.371e-05/0.4141, allocations: 20 kB / 432.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006462/0.4147, allocations: 243.2 kB / 433 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/0.4162, allocations: 415.3 kB / 433.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/0.4188, allocations: 3.002 MB / 436.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/0.4207, allocations: 131.8 kB / 436.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.4209, allocations: 75.98 kB / 436.6 MB, free: 9.641 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00184/0.4227, allocations: 0.8172 MB / 437.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005296/0.4233, allocations: 189.6 kB / 437.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003902/0.4272, allocations: 2.043 MB / 439.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.4272, allocations: 12.14 kB / 439.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.4272, allocations: 15.98 kB / 439.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.4272, allocations: 7.969 kB / 439.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.4374, allocations: 4.755 MB / 444.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.4375, allocations: 8.031 kB / 444.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.4387, allocations: 267.6 kB / 444.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005696/0.4392, allocations: 203.2 kB / 444.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.4394, allocations: 24 kB / 444.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/0.4425, allocations: 2.979 MB / 447.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.4425, allocations: 4 kB / 447.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00492/0.4474, allocations: 3.141 MB / 451.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.4486, allocations: 430.6 kB / 451.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005818/0.4492, allocations: 27.98 kB / 451.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.4506, allocations: 107.9 kB / 451.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.4508, allocations: 76.83 kB / 451.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.073e-05/0.4509, allocations: 35.98 kB / 451.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002937/0.4539, allocations: 1.224 MB / 452.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4539, allocations: 7.938 kB / 453 MB, free: 8.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002558/0.4565, allocations: 484 kB / 453.4 MB, free: 8.367 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,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.0005246/0.457, allocations: 201.1 kB / 453.6 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003991/0.461, allocations: 2.351 MB / 456 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.461, allocations: 3.984 kB / 456 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.463, allocations: 1.343 MB / 457.3 MB, free: 4.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003816/0.4668, allocations: 462.5 kB / 457.8 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.4778, allocations: 6.157 MB / 463.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002425/0.4803, allocations: 1.978 MB / 465.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.4814, allocations: 151.4 kB / 466.1 MB, free: 11.5 MB / 382.1 MB Notification: Performance of SimCode: time 2.394e-06/0.4814, allocations: 7.938 kB / 466.1 MB, free: 11.5 MB / 382.1 MB Notification: Performance of Templates: time 0.3107/0.7921, allocations: 82.29 MB / 0.5355 GB, free: 148 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches