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.001083/0.001083, allocations: 110.8 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2247, allocations: 50.55 MB / 410 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01764/0.2424, allocations: 18.84 MB / 428.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00897/0.2514, allocations: 5.726 MB / 434.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002359/0.2538, allocations: 67.81 kB / 434.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.2574, allocations: 1.355 MB / 435.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003697/0.2611, allocations: 1.303 MB / 437.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.2628, allocations: 0.6672 MB / 437.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004755/0.2675, allocations: 3.942 MB / 441.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002279/0.2698, allocations: 1.584 MB / 443.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001996/0.2718, allocations: 1.475 MB / 444.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001546/0.2734, allocations: 1.579 MB / 446.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004352/0.2738, allocations: 372 kB / 446.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006649/0.2745, allocations: 416 kB / 447.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000505/0.275, allocations: 0.7317 MB / 448 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.2765, allocations: 1.773 MB / 449.8 MB, free: 9.539 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003881/0.2804, allocations: 4.598 MB / 454.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2804, allocations: 0 / 454.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2804, allocations: 3.938 kB / 454.4 MB, free: 4.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.716e-05/0.2805, allocations: 4 kB / 454.4 MB, free: 4.918 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.005206/0.2857, allocations: 3.336 MB / 457.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2857, allocations: 8.031 kB / 457.7 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.2873, allocations: 479.7 kB / 458.2 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.29, allocations: 1.731 MB / 459.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.2901, allocations: 197.2 kB / 460.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.2904, allocations: 275.8 kB / 460.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003848/0.2943, allocations: 2.462 MB / 462.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.107e-05/0.2944, allocations: 11.84 kB / 462.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001932/0.2946, allocations: 108 kB / 463 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-05/0.2946, allocations: 68 kB / 463 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.2975, allocations: 1.642 MB / 464.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.3095, allocations: 10.56 MB / 475.2 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.3108, allocations: 1.042 MB / 476.3 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005857/0.3114, allocations: 367.4 kB / 476.6 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.3115, allocations: 8.656 kB / 476.6 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3115, allocations: 51.14 kB / 476.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.615e-06/0.3115, allocations: 0 / 476.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.004859/0.3164, allocations: 2.917 MB / 479.6 MB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.3165, allocations: 175.2 kB / 479.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002786/0.3193, allocations: 2.198 MB / 482 MB, free: 8.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/0.3193, allocations: 41.7 kB / 482 MB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009844/0.3203, allocations: 1.466 MB / 483.5 MB, free: 6.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.3205, allocations: 331.4 kB / 483.8 MB, free: 6.328 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003777/0.3209, allocations: 331.1 kB / 484.1 MB, free: 6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.321, allocations: 305.1 kB / 484.4 MB, free: 5.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/0.3217, allocations: 376.7 kB / 484.8 MB, free: 5.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.3229, allocations: 1.239 MB / 486 MB, free: 3.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.3249, allocations: 1.723 MB / 487.8 MB, free: 1.523 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/0.3249, allocations: 8 kB / 487.8 MB, free: 1.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002816/0.3277, allocations: 1.83 MB / 489.6 MB, free: 15.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.3278, allocations: 24.81 kB / 489.6 MB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.3278, allocations: 28 kB / 489.6 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004847/0.3283, allocations: 159.3 kB / 489.8 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.3295, allocations: 415.3 kB / 490.2 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003947/0.3335, allocations: 5.758 MB / 496 MB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.3349, allocations: 91.78 kB / 496.1 MB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.335, allocations: 99.94 kB / 496.1 MB, free: 8.531 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001241/0.3363, allocations: 0.7226 MB / 496.9 MB, free: 7.805 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001154/0.3374, allocations: 1.227 MB / 498.1 MB, free: 6.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001863/0.3393, allocations: 1.707 MB / 499.8 MB, free: 4.039 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.856e-05/0.3393, allocations: 8 kB / 499.8 MB, free: 4.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002711/0.3421, allocations: 1.815 MB / 0.4899 GB, free: 2.195 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.3421, allocations: 16 kB / 0.4899 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.572e-05/0.3421, allocations: 32 kB / 0.4899 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004106/0.3425, allocations: 155.5 kB / 0.4901 GB, free: 1.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.3437, allocations: 411.2 kB / 0.4905 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003859/0.3476, allocations: 5.758 MB / 0.4961 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.349, allocations: 83.88 kB / 0.4962 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.3491, allocations: 96 kB / 0.4963 GB, free: 11.09 MB / 430.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.000295/0.3494, allocations: 327.6 kB / 0.4966 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/0.3496, allocations: 225.2 kB / 0.4968 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.3513, allocations: 0.9184 MB / 0.4977 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.3513, allocations: 11.92 kB / 0.4977 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3513, allocations: 0 / 0.4977 GB, free: 9.586 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005517/0.3519, allocations: 382.1 kB / 0.4981 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002489/0.3521, allocations: 16 kB / 0.4981 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000869/0.353, allocations: 47.97 kB / 0.4981 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3531, allocations: 56.91 kB / 0.4982 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001864/0.355, allocations: 0.8795 MB / 0.499 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001813/0.3568, allocations: 1.303 MB / 0.5003 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004605/0.3573, allocations: 279.8 kB / 0.5006 GB, free: 6.578 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001955/0.3593, allocations: 1.458 MB / 0.502 GB, free: 5.109 MB / 430.1 MB Notification: Performance of Backend: time 2.21e-07/0.3593, allocations: 0 / 0.502 GB, free: 5.109 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00423/0.3635, allocations: 2.59 MB / 0.5045 GB, free: 2.422 MB / 430.1 MB Notification: Performance of SimCode: time 0.007212/0.3707, allocations: 4.971 MB / 0.5094 GB, free: 13.41 MB / 446.1 MB Notification: Performance of Templates: time 0.221/0.5918, allocations: 30.14 MB / 0.5388 GB, free: 125.5 MB / 462.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 -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