Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001447/0.001447, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 58.19 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.0901, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1778/0.2679, allocations: 18.83 MB / 377.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009971/0.278, allocations: 5.733 MB / 383.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003451/0.2814, allocations: 67.06 kB / 383.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003934/0.2854, allocations: 1.299 MB / 384.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005033/0.2905, allocations: 1.207 MB / 386 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.2922, allocations: 0.668 MB / 386.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005435/0.2977, allocations: 3.942 MB / 390.7 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002102/0.2998, allocations: 1.591 MB / 392.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002656/0.3025, allocations: 1.453 MB / 393.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002456/0.305, allocations: 1.585 MB / 395.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000593/0.3056, allocations: 376.5 kB / 395.6 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.3068, allocations: 408.4 kB / 396 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004266/0.3072, allocations: 0.7327 MB / 396.8 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001723/0.309, allocations: 1.769 MB / 398.5 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004222/0.3132, allocations: 4.601 MB / 403.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3132, allocations: 5.281 kB / 403.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3132, allocations: 0 / 403.2 MB, free: 13.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.545e-05/0.3133, allocations: 0 / 403.2 MB, free: 13.35 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.006454/0.3198, allocations: 3.331 MB / 406.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.3198, allocations: 10.91 kB / 406.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/0.3214, allocations: 478.4 kB / 407 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003047/0.3245, allocations: 1.738 MB / 408.7 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.3246, allocations: 199.4 kB / 408.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003004/0.3249, allocations: 268.7 kB / 409.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003867/0.3288, allocations: 2.47 MB / 411.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.938e-05/0.3289, allocations: 15.84 kB / 411.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001908/0.3291, allocations: 112 kB / 411.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.631e-05/0.3291, allocations: 64 kB / 411.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.3322, allocations: 1.642 MB / 413.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0129/0.3451, allocations: 10.55 MB / 424 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.3464, allocations: 1.046 MB / 425.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000591/0.347, allocations: 368.5 kB / 425.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.3471, allocations: 8.656 kB / 425.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.3471, allocations: 39.22 kB / 425.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.696e-06/0.3471, allocations: 0 / 425.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.005247/0.3524, allocations: 2.91 MB / 428.4 MB, free: 5.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.474e-05/0.3525, allocations: 167.2 kB / 428.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003026/0.3555, allocations: 2.209 MB / 430.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.267e-05/0.3556, allocations: 37.7 kB / 430.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009754/0.3566, allocations: 1.466 MB / 432.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.3568, allocations: 331.5 kB / 432.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004194/0.3572, allocations: 331.1 kB / 432.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.537e-05/0.3573, allocations: 309.1 kB / 433.2 MB, free: 472 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006755/0.358, allocations: 372.6 kB / 433.6 MB, free: 96 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.3593, allocations: 1.235 MB / 434.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/0.3612, allocations: 1.722 MB / 436.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.3612, allocations: 8 kB / 436.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002989/0.3642, allocations: 1.842 MB / 438.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.3642, allocations: 16 kB / 438.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/0.3643, allocations: 32.09 kB / 438.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000518/0.3648, allocations: 159.4 kB / 438.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.366, allocations: 415.2 kB / 439 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004078/0.37, allocations: 5.766 MB / 444.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.3718, allocations: 91.72 kB / 444.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.3719, allocations: 96 kB / 444.9 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001376/0.3733, allocations: 0.7266 MB / 445.7 MB, free: 2.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001194/0.3745, allocations: 1.227 MB / 446.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001899/0.3764, allocations: 1.695 MB / 448.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.115e-05/0.3764, allocations: 8 kB / 448.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002873/0.3793, allocations: 1.815 MB / 450.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.3794, allocations: 16 kB / 450.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.3794, allocations: 32 kB / 450.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004323/0.3798, allocations: 163.6 kB / 450.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.381, allocations: 407.3 kB / 451 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003873/0.3849, allocations: 5.761 MB / 456.8 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.3864, allocations: 87.88 kB / 456.8 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.3866, allocations: 100.1 kB / 456.9 MB, free: 5.844 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,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.0003345/0.3869, allocations: 323.6 kB / 457.3 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.3872, allocations: 225.2 kB / 457.5 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.3888, allocations: 0.9146 MB / 458.4 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3888, allocations: 8 kB / 458.4 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3888, allocations: 0 / 458.4 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3888, allocations: 7.922 kB / 458.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/0.3934, allocations: 3.117 MB / 461.5 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3934, allocations: 4.75 kB / 461.5 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005931/0.394, allocations: 159.8 kB / 461.7 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.3944, allocations: 123.3 kB / 461.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/0.3945, allocations: 24 kB / 461.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/0.3984, allocations: 5.715 MB / 467.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.3985, allocations: 11.94 kB / 467.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.4007, allocations: 1.488 MB / 469 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008067/0.4016, allocations: 386.2 kB / 469.4 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.4018, allocations: 27.98 kB / 469.5 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000888/0.4027, allocations: 51.91 kB / 469.5 MB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.4029, allocations: 84.34 kB / 469.6 MB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.4029, allocations: 36.06 kB / 469.6 MB, free: 8.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002077/0.405, allocations: 1.454 MB / 471.1 MB, free: 6.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.405, allocations: 7.875 kB / 471.1 MB, free: 6.816 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002923/0.4079, allocations: 0.9414 MB / 472 MB, free: 5.875 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002692/0.4082, allocations: 154.6 kB / 472.2 MB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003718/0.4119, allocations: 2.696 MB / 474.9 MB, free: 2.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.412, allocations: 8 kB / 474.9 MB, free: 2.926 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009695/0.4129, allocations: 0.8244 MB / 475.7 MB, free: 2.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.4155, allocations: 0.5882 MB / 476.3 MB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006103/0.4216, allocations: 4.15 MB / 480.4 MB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.4228, allocations: 1.567 MB / 482 MB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001134/0.4239, allocations: 327.2 kB / 482.3 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.4242, allocations: 135.4 kB / 482.5 MB, free: 11.17 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4242, allocations: 4 kB / 482.5 MB, free: 11.17 MB / 398.1 MB Notification: Performance of Templates: time 0.04565/0.4699, allocations: 25.73 MB / 0.4963 GB, free: 1.734 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches