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.001116/0.001116, allocations: 110.5 kB / 17.75 MB, free: 5.332 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.001125/0.001125, allocations: 187 kB / 18.68 MB, free: 4.406 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.403/1.403, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009574/0.0009574, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2203, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01853/0.2389, allocations: 18.85 MB / 420.3 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009015/0.2479, allocations: 5.682 MB / 426 MB, free: 244 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002092/0.25, allocations: 67.81 kB / 426 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003272/0.2533, allocations: 1.355 MB / 427.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.2568, allocations: 1.303 MB / 428.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.2583, allocations: 0.6697 MB / 429.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00373/0.262, allocations: 3.95 MB / 433.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001788/0.2638, allocations: 1.592 MB / 434.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.2652, allocations: 1.463 MB / 436.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.2666, allocations: 1.583 MB / 437.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003986/0.267, allocations: 372 kB / 438.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006508/0.2677, allocations: 420 kB / 438.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005197/0.2682, allocations: 0.7317 MB / 439.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.2698, allocations: 1.773 MB / 441.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003964/0.2737, allocations: 4.594 MB / 445.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2738, allocations: 4 kB / 445.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2738, allocations: 0 / 445.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.403e-05/0.2738, allocations: 0 / 445.8 MB, free: 12.24 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.005255/0.2791, allocations: 3.332 MB / 449.1 MB, free: 8.844 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2791, allocations: 8.031 kB / 449.1 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/0.2807, allocations: 475.7 kB / 449.6 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/0.2833, allocations: 1.742 MB / 451.4 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.2834, allocations: 193.2 kB / 451.5 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/0.2837, allocations: 267.8 kB / 451.8 MB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004105/0.2878, allocations: 2.47 MB / 454.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.253e-05/0.2879, allocations: 7.906 kB / 454.3 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.2881, allocations: 108 kB / 454.4 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-05/0.2882, allocations: 64 kB / 454.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/0.2911, allocations: 1.646 MB / 456.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01176/0.3029, allocations: 10.56 MB / 466.7 MB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.3043, allocations: 1.046 MB / 467.7 MB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000592/0.3049, allocations: 363.4 kB / 468.1 MB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.3049, allocations: 8.656 kB / 468.1 MB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.3049, allocations: 39.22 kB / 468.1 MB, free: 5.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.485e-06/0.305, allocations: 0 / 468.1 MB, free: 5.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=90): time 0.004649/0.3096, allocations: 2.921 MB / 471 MB, free: 1.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.3097, allocations: 163.2 kB / 471.2 MB, free: 1.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00272/0.3124, allocations: 2.206 MB / 473.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.806e-05/0.3125, allocations: 41.69 kB / 473.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000978/0.3135, allocations: 1.466 MB / 474.9 MB, free: 13.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.3137, allocations: 339.4 kB / 475.2 MB, free: 13.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000378/0.3141, allocations: 331.1 kB / 475.6 MB, free: 13.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.161e-05/0.3142, allocations: 305.1 kB / 475.8 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006848/0.3149, allocations: 368.7 kB / 476.2 MB, free: 12.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.3161, allocations: 1.235 MB / 477.4 MB, free: 11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001992/0.3181, allocations: 1.726 MB / 479.2 MB, free: 8.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-05/0.3181, allocations: 8 kB / 479.2 MB, free: 8.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002801/0.3209, allocations: 1.835 MB / 481 MB, free: 7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.321, allocations: 19.94 kB / 481 MB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.321, allocations: 32 kB / 481.1 MB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000467/0.3215, allocations: 159.5 kB / 481.2 MB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3226, allocations: 411.3 kB / 481.6 MB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003971/0.3266, allocations: 5.765 MB / 487.4 MB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.3279, allocations: 99.81 kB / 487.5 MB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.328, allocations: 95.94 kB / 487.6 MB, free: 15.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001179/0.3292, allocations: 0.7226 MB / 488.3 MB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001198/0.3304, allocations: 1.227 MB / 489.5 MB, free: 13.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001999/0.3324, allocations: 1.699 MB / 491.2 MB, free: 11.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.729e-05/0.3325, allocations: 8 kB / 491.2 MB, free: 11.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002799/0.3353, allocations: 1.815 MB / 493 MB, free: 9.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3353, allocations: 20 kB / 493.1 MB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.3353, allocations: 28 kB / 493.1 MB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003929/0.3357, allocations: 160.1 kB / 493.3 MB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.3369, allocations: 411.2 kB / 493.7 MB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003815/0.3407, allocations: 5.754 MB / 499.4 MB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.3419, allocations: 88.03 kB / 499.5 MB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.342, allocations: 92 kB / 499.6 MB, free: 2.426 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.0002654/0.3423, allocations: 323.8 kB / 499.9 MB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002609/0.3426, allocations: 229.2 kB / 0.4884 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.3442, allocations: 0.9068 MB / 0.4893 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3442, allocations: 3.984 kB / 0.4893 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3442, allocations: 3.938 kB / 0.4893 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005458/0.3447, allocations: 386.1 kB / 0.4897 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.345, allocations: 16 kB / 0.4897 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008162/0.3458, allocations: 47.95 kB / 0.4897 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.3459, allocations: 52.92 kB / 0.4898 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001849/0.3478, allocations: 0.8795 MB / 0.4906 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001856/0.3497, allocations: 1.307 MB / 0.4919 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004599/0.3501, allocations: 283.8 kB / 0.4922 GB, free: 13.92 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001967/0.3521, allocations: 1.45 MB / 0.4936 GB, free: 12.46 MB / 430.1 MB Notification: Performance of Backend: time 3.6e-07/0.3521, allocations: 0 / 0.4936 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003874/0.356, allocations: 2.593 MB / 0.4961 GB, free: 9.77 MB / 430.1 MB Notification: Performance of SimCode: time 0.007272/0.3633, allocations: 4.977 MB / 0.501 GB, free: 4.742 MB / 430.1 MB Notification: Performance of Templates: time 0.05125/0.4146, allocations: 30.13 MB / 0.5304 GB, free: 6.922 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