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.0007665/0.0007665, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0008226/0.0008226, allocations: 177.7 kB / 18.21 MB, free: 5.676 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.119/1.119, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000206/0.000206, allocations: 11.94 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07117/0.07139, allocations: 50.42 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01469/0.0861, allocations: 17.9 MB / 370.4 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1363/0.2224, allocations: 5.576 MB / 376 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.2246, allocations: 66 kB / 376 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002994/0.2276, allocations: 1.154 MB / 377.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002985/0.2306, allocations: 1.035 MB / 378.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.2317, allocations: 0.5897 MB / 378.8 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002826/0.2345, allocations: 3.716 MB / 382.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/0.236, allocations: 1.34 MB / 383.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.2372, allocations: 1.207 MB / 385.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.2383, allocations: 1.357 MB / 386.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002666/0.2386, allocations: 177.2 kB / 386.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004875/0.2391, allocations: 210.9 kB / 386.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003124/0.2394, allocations: 0.5135 MB / 387.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.2405, allocations: 1.559 MB / 388.9 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.2425, allocations: 3.642 MB / 392.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2425, allocations: 0 / 392.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.031e-06/0.2425, allocations: 0 / 392.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.385e-05/0.2426, allocations: 0 / 392.5 MB, free: 4.703 MB / 302.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.003483/0.2461, allocations: 2.802 MB / 395.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.2461, allocations: 13.25 kB / 395.3 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.2474, allocations: 490.1 kB / 395.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.2492, allocations: 1.698 MB / 397.5 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.2493, allocations: 193.6 kB / 397.7 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000258/0.2496, allocations: 261.6 kB / 398 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003303/0.2529, allocations: 2.484 MB / 400.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.662e-05/0.253, allocations: 12.25 kB / 400.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001691/0.2532, allocations: 109.8 kB / 400.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/0.2532, allocations: 73.05 kB / 400.6 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.2557, allocations: 1.655 MB / 402.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.2666, allocations: 10.7 MB / 413 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.2678, allocations: 1.065 MB / 414.1 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005481/0.2684, allocations: 371.4 kB / 414.4 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.2684, allocations: 11.23 kB / 414.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.2685, allocations: 51.16 kB / 414.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 1.894e-06/0.2685, allocations: 0 / 414.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.004291/0.2728, allocations: 2.961 MB / 417.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.2728, allocations: 167.2 kB / 417.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/0.2755, allocations: 2.206 MB / 419.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.428e-05/0.2755, allocations: 41.7 kB / 419.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009493/0.2765, allocations: 1.465 MB / 421.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.2767, allocations: 334.1 kB / 421.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.2768, allocations: 145.6 kB / 421.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.2769, allocations: 305.1 kB / 422.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005948/0.2775, allocations: 371.8 kB / 422.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.2786, allocations: 1.25 MB / 423.7 MB, free: 8.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.2804, allocations: 1.741 MB / 425.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.2805, allocations: 12 kB / 425.5 MB, free: 6.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00258/0.283, allocations: 1.85 MB / 427.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005417/0.2836, allocations: 0.9701 MB / 428.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/0.2836, allocations: 31.98 kB / 428.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004234/0.2841, allocations: 159.3 kB / 428.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2851, allocations: 411.3 kB / 428.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.2885, allocations: 5.352 MB / 434.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.2896, allocations: 100 kB / 434.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-05/0.2897, allocations: 96 kB / 434.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.25e-06/0.2897, allocations: 4 kB / 434.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002144/0.2919, allocations: 1.589 MB / 436 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.577e-05/0.2919, allocations: 40.17 kB / 436 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/0.2922, allocations: 147.7 kB / 436.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.2933, allocations: 415.2 kB / 436.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003235/0.2965, allocations: 5.343 MB / 441.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009895/0.2975, allocations: 83.89 kB / 442 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.954e-05/0.2976, allocations: 96.08 kB / 442.1 MB, free: 4.344 MB / 350.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.0007526/0.2984, allocations: 0.5867 MB / 442.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.2986, allocations: 229.2 kB / 442.9 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/0.3001, allocations: 0.9302 MB / 443.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3001, allocations: 11.98 kB / 443.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3001, allocations: 4 kB / 443.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3001, allocations: 3.984 kB / 443.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/0.304, allocations: 3.142 MB / 447 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.304, allocations: 8 kB / 447 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005458/0.3046, allocations: 163.7 kB / 447.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003328/0.3049, allocations: 127.9 kB / 447.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.305, allocations: 24 kB / 447.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.3082, allocations: 5.32 MB / 452.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.3082, allocations: 4 kB / 452.7 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.3101, allocations: 1.511 MB / 454.2 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004633/0.3106, allocations: 390.2 kB / 454.5 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.3108, allocations: 27.98 kB / 454.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00079/0.3116, allocations: 55.97 kB / 454.6 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.3117, allocations: 84.22 kB / 454.7 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.3118, allocations: 32 kB / 454.7 MB, free: 6.887 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001754/0.3135, allocations: 1.454 MB / 456.2 MB, free: 5.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3135, allocations: 4 kB / 456.2 MB, free: 5.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002297/0.3158, allocations: 0.9452 MB / 457.1 MB, free: 4.473 MB / 366.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.0001989/0.316, allocations: 147.2 kB / 457.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.3192, allocations: 2.72 MB / 460 MB, free: 1.508 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.3192, allocations: 4 kB / 460 MB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008906/0.3201, allocations: 0.8324 MB / 460.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003718/0.3238, allocations: 0.5693 MB / 461.4 MB, free: 56 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005824/0.3296, allocations: 5.454 MB / 466.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.3307, allocations: 1.567 MB / 468.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/0.331, allocations: 151.4 kB / 468.6 MB, free: 8.758 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.331, allocations: 0 / 468.6 MB, free: 8.758 MB / 382.1 MB Notification: Performance of Templates: time 0.1959/0.527, allocations: 78.18 MB / 0.5339 GB, free: 148.1 MB / 446.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