Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 111 kB / 16.51 MB, free: 6.715 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.001014/0.001014, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.382/1.382, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009674/0.0009674, allocations: 47.58 kB / 300 MB, free: 6.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09055/0.09153, allocations: 49.45 MB / 349.4 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01155/0.1031, allocations: 12.06 MB / 361.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005274/0.1084, allocations: 3.249 MB / 364.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.1098, allocations: 35.94 kB / 364.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001857/0.1117, allocations: 0.5788 MB / 365.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001787/0.1135, allocations: 0.6283 MB / 365.9 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006834/0.1142, allocations: 351.8 kB / 366.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002097/0.1163, allocations: 2.278 MB / 368.6 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.1174, allocations: 0.8544 MB / 369.4 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1536/0.271, allocations: 0.8013 MB / 370.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.2723, allocations: 0.9226 MB / 371.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003425/0.2726, allocations: 139.4 kB / 371.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004483/0.2731, allocations: 184.9 kB / 371.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002653/0.2734, allocations: 369.4 kB / 371.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008504/0.2742, allocations: 0.9868 MB / 372.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.2766, allocations: 2.724 MB / 375.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2766, allocations: 0 / 375.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2766, allocations: 2.047 kB / 375.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.197e-05/0.2767, allocations: 0 / 375.5 MB, free: 11.32 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003632/0.2803, allocations: 2.156 MB / 377.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2803, allocations: 10.28 kB / 377.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000893/0.2812, allocations: 278.5 kB / 378 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.2828, allocations: 1.109 MB / 379.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.104e-05/0.2829, allocations: 116.6 kB / 379.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.2831, allocations: 159.4 kB / 379.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.2854, allocations: 1.509 MB / 380.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.955e-05/0.2855, allocations: 12.41 kB / 380.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.2856, allocations: 62.72 kB / 380.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.151e-05/0.2857, allocations: 42.69 kB / 381 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.2876, allocations: 1.044 MB / 382 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006503/0.2941, allocations: 6.3 MB / 388.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.2956, allocations: 0.61 MB / 388.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008344/0.2964, allocations: 453.4 kB / 389.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.2965, allocations: 16.08 kB / 389.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2965, allocations: 45.66 kB / 389.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.064e-06/0.2965, allocations: 1.344 kB / 389.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.004516/0.301, allocations: 2.355 MB / 391.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.3011, allocations: 116.8 kB / 391.9 MB, free: 2.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.3026, allocations: 1.306 MB / 393.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.3026, allocations: 40.33 kB / 393.3 MB, free: 1.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004019/0.303, allocations: 0.8449 MB / 394.1 MB, free: 1.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.3032, allocations: 263.9 kB / 394.4 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.3034, allocations: 203.8 kB / 394.6 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.695e-05/0.3035, allocations: 355.2 kB / 394.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005218/0.304, allocations: 280.1 kB / 395.2 MB, free: 420 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007961/0.3048, allocations: 0.7379 MB / 395.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.3063, allocations: 1.087 MB / 397 MB, free: 14.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.036e-06/0.3063, allocations: 4.375 kB / 397 MB, free: 14.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00234/0.3087, allocations: 1.267 MB / 398.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3087, allocations: 10.69 kB / 398.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.3087, allocations: 13.19 kB / 398.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004931/0.3092, allocations: 133.8 kB / 398.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007898/0.31, allocations: 262.5 kB / 398.7 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003814/0.3139, allocations: 4.275 MB / 403 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.315, allocations: 66.31 kB / 403 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.727e-05/0.3151, allocations: 52.19 kB / 403.1 MB, free: 9.781 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006659/0.3157, allocations: 356.2 kB / 403.4 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.3159, allocations: 140.8 kB / 403.6 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.3177, allocations: 0.8366 MB / 404.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3177, allocations: 8.719 kB / 404.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3177, allocations: 3.031 kB / 404.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.3177, allocations: 3.984 kB / 404.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/0.3216, allocations: 2.334 MB / 406.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.3217, allocations: 7.5 kB / 406.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/0.3222, allocations: 131.8 kB / 406.9 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004573/0.3227, allocations: 127.9 kB / 407 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.021e-05/0.3228, allocations: 22.34 kB / 407 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00418/0.3269, allocations: 4.396 MB / 411.4 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.327, allocations: 6.812 kB / 411.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/0.3295, allocations: 1.295 MB / 412.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006925/0.3302, allocations: 283.3 kB / 413 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003076/0.3305, allocations: 16 kB / 413 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008165/0.3313, allocations: 39.97 kB / 413.1 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.3315, allocations: 69.67 kB / 413.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.868e-05/0.3315, allocations: 20.31 kB / 413.1 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001507/0.333, allocations: 0.8742 MB / 414 MB, free: 15.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3331, allocations: 0 / 414 MB, free: 15.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001415/0.3345, allocations: 332 kB / 414.3 MB, free: 15.53 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002385/0.3347, allocations: 143 kB / 414.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.3367, allocations: 1.121 MB / 415.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3367, allocations: 3.938 kB / 415.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.3377, allocations: 0.7034 MB / 416.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.3396, allocations: 347.4 kB / 416.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005701/0.3453, allocations: 3.582 MB / 420.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008639/0.3461, allocations: 1.217 MB / 421.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007434/0.3469, allocations: 171.6 kB / 421.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.3471, allocations: 87.42 kB / 421.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3472, allocations: 4 kB / 421.7 MB, free: 8.066 MB / 334.1 MB Notification: Performance of Templates: time 0.02941/0.3766, allocations: 16.76 MB / 438.5 MB, free: 7.531 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches