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.001493/0.001493, allocations: 115.8 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.001901/0.001901, allocations: 199.5 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.324/1.324, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 61.31 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08881/0.08998, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1701/0.2602, allocations: 18.83 MB / 377.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007909/0.2681, allocations: 5.732 MB / 383.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.2703, allocations: 65.16 kB / 383.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00327/0.2736, allocations: 1.304 MB / 384.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003422/0.277, allocations: 1.207 MB / 386 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.2786, allocations: 0.6731 MB / 386.7 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003985/0.2826, allocations: 3.936 MB / 390.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001843/0.2845, allocations: 1.592 MB / 392.2 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002113/0.2866, allocations: 1.456 MB / 393.7 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/0.2886, allocations: 1.587 MB / 395.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005009/0.2891, allocations: 375.9 kB / 395.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009093/0.29, allocations: 409.2 kB / 396.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003945/0.2904, allocations: 0.7309 MB / 396.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.292, allocations: 1.769 MB / 398.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00419/0.2962, allocations: 4.596 MB / 403.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2962, allocations: 4 kB / 403.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2962, allocations: 0 / 403.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.727e-05/0.2963, allocations: 0.8125 kB / 403.2 MB, free: 13.3 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.00601/0.3023, allocations: 3.341 MB / 406.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.3024, allocations: 8.188 kB / 406.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.3039, allocations: 480.1 kB / 407 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002747/0.3066, allocations: 1.73 MB / 408.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.3067, allocations: 195 kB / 408.9 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002996/0.307, allocations: 277 kB / 409.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003708/0.3108, allocations: 2.472 MB / 411.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-05/0.3108, allocations: 7.906 kB / 411.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/0.311, allocations: 108 kB / 411.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-05/0.3111, allocations: 68 kB / 411.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002872/0.314, allocations: 1.646 MB / 413.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01218/0.3261, allocations: 10.55 MB / 424 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.3274, allocations: 1.054 MB / 425.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005477/0.328, allocations: 356.5 kB / 425.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.065e-05/0.3281, allocations: 12.66 kB / 425.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.3281, allocations: 43.2 kB / 425.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.304e-06/0.3281, allocations: 4 kB / 425.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.004824/0.3329, allocations: 2.91 MB / 428.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.333, allocations: 167.2 kB / 428.5 MB, free: 5.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002851/0.3359, allocations: 2.202 MB / 430.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.443e-05/0.336, allocations: 41.7 kB / 430.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009904/0.337, allocations: 1.47 MB / 432.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/0.3372, allocations: 331.5 kB / 432.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003846/0.3376, allocations: 331.1 kB / 432.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.016e-05/0.3377, allocations: 305.1 kB / 433.2 MB, free: 460 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000662/0.3384, allocations: 376.7 kB / 433.6 MB, free: 80 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.3396, allocations: 1.231 MB / 434.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/0.3415, allocations: 1.726 MB / 436.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.3416, allocations: 15.94 kB / 436.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002924/0.3445, allocations: 1.835 MB / 438.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.3445, allocations: 24.16 kB / 438.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/0.3446, allocations: 28 kB / 438.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000494/0.3451, allocations: 151.4 kB / 438.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.3462, allocations: 423.2 kB / 439 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003908/0.3501, allocations: 5.754 MB / 444.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.3517, allocations: 91.78 kB / 444.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.3518, allocations: 96 kB / 444.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001347/0.3532, allocations: 0.7227 MB / 445.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001128/0.3543, allocations: 1.235 MB / 446.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001776/0.3561, allocations: 1.699 MB / 448.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.249e-05/0.3561, allocations: 8 kB / 448.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002854/0.359, allocations: 1.815 MB / 450.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.359, allocations: 20 kB / 450.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.678e-05/0.3591, allocations: 31.94 kB / 450.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000465/0.3595, allocations: 159.8 kB / 450.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.3607, allocations: 411.3 kB / 451 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004055/0.3647, allocations: 5.757 MB / 456.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.3665, allocations: 87.97 kB / 456.9 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.3667, allocations: 96 kB / 456.9 MB, free: 5.832 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.0003549/0.367, allocations: 315.6 kB / 457.3 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002733/0.3673, allocations: 229.2 kB / 457.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.369, allocations: 0.9146 MB / 458.4 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.369, allocations: 8 kB / 458.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.369, allocations: 4 kB / 458.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.369, allocations: 7.922 kB / 458.4 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/0.3736, allocations: 3.114 MB / 461.5 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/0.3736, allocations: 8 kB / 461.5 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.3742, allocations: 159.8 kB / 461.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003839/0.3746, allocations: 123.3 kB / 461.8 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.3747, allocations: 31.98 kB / 461.8 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003922/0.3786, allocations: 5.711 MB / 467.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.267e-05/0.3786, allocations: 8 kB / 467.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.3809, allocations: 1.492 MB / 469.1 MB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000824/0.3818, allocations: 386.2 kB / 469.4 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.382, allocations: 28.12 kB / 469.5 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009163/0.383, allocations: 55.89 kB / 469.5 MB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3831, allocations: 84.28 kB / 469.6 MB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.3831, allocations: 32 kB / 469.6 MB, free: 8.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00219/0.3853, allocations: 1.458 MB / 471.1 MB, free: 6.805 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3854, allocations: 0 / 471.1 MB, free: 6.805 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002985/0.3883, allocations: 0.9414 MB / 472 MB, free: 5.863 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.0002447/0.3886, allocations: 151 kB / 472.2 MB, free: 5.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.3925, allocations: 2.699 MB / 474.9 MB, free: 2.918 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.3925, allocations: 4 kB / 474.9 MB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3935, allocations: 0.8208 MB / 475.7 MB, free: 2.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.3958, allocations: 0.6061 MB / 476.3 MB, free: 1.457 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/0.4017, allocations: 4.146 MB / 480.4 MB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.4029, allocations: 1.567 MB / 482 MB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00116/0.404, allocations: 323.2 kB / 482.3 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.4043, allocations: 139.4 kB / 482.5 MB, free: 11.16 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4043, allocations: 0 / 482.5 MB, free: 11.16 MB / 398.1 MB Notification: Performance of Templates: time 0.04613/0.4505, allocations: 25.74 MB / 0.4963 GB, free: 1.719 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 gbode -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