Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 110.9 kB / 17.74 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 190.6 kB / 18.68 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009842/0.0009843, allocations: 51.92 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2465, allocations: 49.42 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01934/0.2659, allocations: 18.84 MB / 420.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.276, allocations: 5.686 MB / 426 MB, free: 244 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.2783, allocations: 67.81 kB / 426 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003565/0.282, allocations: 1.359 MB / 427.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003692/0.2857, allocations: 1.303 MB / 428.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001666/0.2873, allocations: 0.6749 MB / 429.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004748/0.2921, allocations: 3.94 MB / 433.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002197/0.2943, allocations: 1.585 MB / 434.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001957/0.2963, allocations: 1.471 MB / 436.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002165/0.2985, allocations: 1.579 MB / 437.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004732/0.2989, allocations: 375.9 kB / 438.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007389/0.2997, allocations: 419.9 kB / 438.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005001/0.3002, allocations: 0.7278 MB / 439.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001592/0.3018, allocations: 1.769 MB / 441.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004343/0.3061, allocations: 4.622 MB / 445.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3062, allocations: 0 / 445.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3062, allocations: 0 / 445.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.67e-05/0.3062, allocations: 0 / 445.8 MB, free: 12.23 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005303/0.3115, allocations: 3.418 MB / 449.2 MB, free: 8.738 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3116, allocations: 12.03 kB / 449.3 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/0.3131, allocations: 493.6 kB / 449.7 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.3159, allocations: 1.756 MB / 451.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.316, allocations: 197.2 kB / 451.7 MB, free: 6.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003269/0.3164, allocations: 267.8 kB / 452 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003771/0.3201, allocations: 2.466 MB / 454.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.042e-05/0.3202, allocations: 19.91 kB / 454.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/0.3204, allocations: 108 kB / 454.5 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.116e-05/0.3205, allocations: 68 kB / 454.6 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002988/0.3235, allocations: 1.638 MB / 456.2 MB, free: 1.539 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/0.3365, allocations: 10.58 MB / 466.8 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.3379, allocations: 1.058 MB / 467.9 MB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000592/0.3385, allocations: 363.4 kB / 468.2 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.327e-05/0.3385, allocations: 12.64 kB / 468.2 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.3386, allocations: 43.22 kB / 468.3 MB, free: 4.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.066e-06/0.3386, allocations: 4 kB / 468.3 MB, free: 4.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=90): time 0.005053/0.3437, allocations: 2.954 MB / 471.2 MB, free: 1.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.3438, allocations: 171.2 kB / 471.4 MB, free: 1.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002975/0.3467, allocations: 2.202 MB / 473.6 MB, free: 15.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/0.3468, allocations: 41.7 kB / 473.7 MB, free: 15.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.3478, allocations: 1.517 MB / 475.2 MB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.3481, allocations: 345.2 kB / 475.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003974/0.3485, allocations: 335.3 kB / 475.8 MB, free: 13.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3486, allocations: 301.1 kB / 476.1 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006935/0.3493, allocations: 372.7 kB / 476.5 MB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.3506, allocations: 1.235 MB / 477.7 MB, free: 10.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/0.3527, allocations: 1.722 MB / 479.5 MB, free: 8.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-05/0.3528, allocations: 8 kB / 479.5 MB, free: 8.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00299/0.3557, allocations: 1.848 MB / 481.3 MB, free: 6.723 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.3558, allocations: 19.94 kB / 481.3 MB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/0.3558, allocations: 28.05 kB / 481.4 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005116/0.3563, allocations: 163.8 kB / 481.5 MB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.3575, allocations: 407.2 kB / 481.9 MB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00399/0.3615, allocations: 5.769 MB / 487.7 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.363, allocations: 87.98 kB / 487.8 MB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.3631, allocations: 99.98 kB / 487.9 MB, free: 15.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001356/0.3644, allocations: 0.7226 MB / 488.6 MB, free: 14.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001162/0.3656, allocations: 1.235 MB / 489.8 MB, free: 13.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001864/0.3675, allocations: 1.691 MB / 491.5 MB, free: 11.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.177e-05/0.3675, allocations: 11.94 kB / 491.5 MB, free: 11.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002912/0.3704, allocations: 1.832 MB / 493.4 MB, free: 9.238 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3705, allocations: 19.94 kB / 493.4 MB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.829e-05/0.3705, allocations: 32.88 kB / 493.4 MB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004459/0.371, allocations: 159.3 kB / 493.6 MB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.3721, allocations: 403.3 kB / 494 MB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003886/0.376, allocations: 5.754 MB / 499.7 MB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.3775, allocations: 92.08 kB / 499.8 MB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.3776, allocations: 92 kB / 499.9 MB, free: 2.137 MB / 414.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.0003344/0.3779, allocations: 325.5 kB / 0.4885 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/0.3782, allocations: 246.5 kB / 0.4887 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.3799, allocations: 0.9106 MB / 0.4896 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.38, allocations: 7.984 kB / 0.4896 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.38, allocations: 0 / 0.4896 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005562/0.3805, allocations: 387.3 kB / 0.49 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002613/0.3808, allocations: 19.98 kB / 0.49 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008708/0.3817, allocations: 43.97 kB / 0.4901 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.3818, allocations: 60.91 kB / 0.4901 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001988/0.3838, allocations: 0.8836 MB / 0.491 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001873/0.3857, allocations: 1.32 MB / 0.4923 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004591/0.3862, allocations: 275.8 kB / 0.4925 GB, free: 13.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002337/0.3885, allocations: 1.458 MB / 0.4939 GB, free: 12.13 MB / 430.1 MB Notification: Performance of Backend: time 6.01e-07/0.3885, allocations: 0 / 0.4939 GB, free: 12.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004464/0.393, allocations: 2.574 MB / 0.4965 GB, free: 9.457 MB / 430.1 MB Notification: Performance of SimCode: time 0.008603/0.4016, allocations: 5.073 MB / 0.5014 GB, free: 4.324 MB / 430.1 MB Notification: Performance of Templates: time 0.05524/0.4569, allocations: 30.13 MB / 0.5308 GB, free: 6.504 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches