Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 108.3 kB / 17.74 MB, free: 5.352 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.00111/0.00111, allocations: 191 kB / 18.67 MB, free: 4.426 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 59.91 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2887, allocations: 49.42 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01006/0.2988, allocations: 8.222 MB / 409.6 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005408/0.3043, allocations: 2.688 MB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.3059, allocations: 27.88 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002103/0.3081, allocations: 0.5558 MB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002012/0.3101, allocations: 484.1 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008116/0.311, allocations: 259.7 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002336/0.3133, allocations: 1.508 MB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.3144, allocations: 0.5847 MB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009937/0.3154, allocations: 0.5603 MB / 416.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.3166, allocations: 0.6222 MB / 416.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000344/0.3169, allocations: 140 kB / 417 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006332/0.3176, allocations: 172 kB / 417.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003413/0.3179, allocations: 282.9 kB / 417.5 MB, free: 8.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.319, allocations: 0.6843 MB / 418.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002427/0.3215, allocations: 1.748 MB / 419.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3215, allocations: 0 / 419.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3215, allocations: 0 / 419.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.894e-05/0.3216, allocations: 0 / 419.9 MB, free: 6.27 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003397/0.325, allocations: 1.48 MB / 421.4 MB, free: 4.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.325, allocations: 11.89 kB / 421.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007495/0.3258, allocations: 195.3 kB / 421.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001472/0.3273, allocations: 0.7619 MB / 422.4 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.467e-05/0.3273, allocations: 70 kB / 422.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.3275, allocations: 103.9 kB / 422.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.3292, allocations: 0.9386 MB / 423.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.95e-05/0.3293, allocations: 11.98 kB / 423.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.252e-05/0.3294, allocations: 36 kB / 423.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.3294, allocations: 24 kB / 423.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.3307, allocations: 0.6481 MB / 424.2 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005381/0.3361, allocations: 3.918 MB / 428.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007678/0.3369, allocations: 456.5 kB / 428.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006217/0.3376, allocations: 272.7 kB / 428.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.614e-05/0.3376, allocations: 7.984 kB / 428.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.3377, allocations: 42.56 kB / 428.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.755e-06/0.3377, allocations: 0 / 428.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003203/0.3409, allocations: 1.548 MB / 430.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.341, allocations: 89.11 kB / 430.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.3421, allocations: 0.8371 MB / 431.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.3422, allocations: 29.7 kB / 431.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000404/0.3426, allocations: 0.5681 MB / 431.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.3427, allocations: 165.6 kB / 432.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.3429, allocations: 126.6 kB / 432.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3431, allocations: 334 kB / 432.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.3434, allocations: 181.8 kB / 432.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005583/0.344, allocations: 467.6 kB / 433.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.345, allocations: 0.6835 MB / 433.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.345, allocations: 4 kB / 433.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001499/0.3465, allocations: 0.7906 MB / 434.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3466, allocations: 12 kB / 434.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.3466, allocations: 8 kB / 434.7 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/0.3469, allocations: 81.94 kB / 434.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005294/0.3474, allocations: 159.7 kB / 434.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.3501, allocations: 3.138 MB / 438.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006866/0.3508, allocations: 35.89 kB / 438.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.85e-05/0.3509, allocations: 39.98 kB / 438.1 MB, free: 2.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004137/0.3513, allocations: 265.5 kB / 438.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.3514, allocations: 86.97 kB / 438.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.3525, allocations: 0.5069 MB / 439 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3525, allocations: 4 kB / 439 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.3525, allocations: 0 / 439 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3525, allocations: 3.984 kB / 439 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3547, allocations: 1.482 MB / 440.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3547, allocations: 8.031 kB / 440.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.3551, allocations: 71.89 kB / 440.5 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002052/0.3553, allocations: 73.67 kB / 440.6 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.646e-05/0.3553, allocations: 8 kB / 440.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/0.3577, allocations: 3.126 MB / 443.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3577, allocations: 4 kB / 443.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3591, allocations: 0.7977 MB / 444.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.3594, allocations: 200 kB / 444.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3596, allocations: 11.94 kB / 444.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.36, allocations: 31.97 kB / 444.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-05/0.3601, allocations: 39.89 kB / 444.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.3602, allocations: 16 kB / 444.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000811/0.361, allocations: 0.5693 MB / 445.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.361, allocations: 0 / 445.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008556/0.3618, allocations: 212 kB / 445.6 MB, free: 11 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002317/0.3621, allocations: 131.1 kB / 445.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3634, allocations: 0.7126 MB / 446.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3634, allocations: 0 / 446.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000655/0.364, allocations: 455 kB / 446.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.3652, allocations: 229.5 kB / 447.1 MB, free: 9.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.3681, allocations: 1.763 MB / 448.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006186/0.3687, allocations: 1.005 MB / 449.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.369, allocations: 67.42 kB / 450 MB, free: 6.512 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.369, allocations: 0 / 450 MB, free: 6.512 MB / 366.1 MB Notification: Performance of Templates: time 0.02678/0.3958, allocations: 21.54 MB / 471.5 MB, free: 1.016 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches