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.001068/0.001068, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001049/0.001049, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009635/0.0009636, allocations: 47.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2227, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00877/0.2315, allocations: 8.21 MB / 409.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00412/0.2357, allocations: 2.699 MB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004977/0.2362, allocations: 27.94 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.2375, allocations: 0.5442 MB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000902/0.2384, allocations: 488.1 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004358/0.2388, allocations: 255.7 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.2402, allocations: 1.508 MB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007332/0.2409, allocations: 0.5847 MB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006142/0.2415, allocations: 0.5681 MB / 416.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006184/0.2422, allocations: 0.6028 MB / 416.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.2423, allocations: 140 kB / 417 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003002/0.2426, allocations: 183.9 kB / 417.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.2428, allocations: 282.9 kB / 417.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005268/0.2434, allocations: 0.6765 MB / 418.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.2449, allocations: 1.76 MB / 419.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2449, allocations: 0 / 419.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2449, allocations: 0 / 419.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.2449, allocations: 4 kB / 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.002212/0.2472, allocations: 1.48 MB / 421.4 MB, free: 4.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2472, allocations: 11.89 kB / 421.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000638/0.2478, allocations: 195.3 kB / 421.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.2489, allocations: 0.7503 MB / 422.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.842e-05/0.249, allocations: 74 kB / 422.4 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.2491, allocations: 99.91 kB / 422.5 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.2507, allocations: 0.9503 MB / 423.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.2507, allocations: 0 / 423.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.371e-05/0.2508, allocations: 40 kB / 423.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/0.2508, allocations: 24 kB / 423.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.2521, allocations: 0.6597 MB / 424.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.2567, allocations: 3.903 MB / 428.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/0.2574, allocations: 460.6 kB / 428.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.258, allocations: 280.6 kB / 428.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.2581, allocations: 4 kB / 428.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.2581, allocations: 38.56 kB / 428.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.723e-06/0.2581, allocations: 0 / 428.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002787/0.2609, allocations: 1.556 MB / 430.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.261, allocations: 85.11 kB / 430.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.262, allocations: 0.8371 MB / 431.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.262, allocations: 29.7 kB / 431.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/0.2624, allocations: 0.5682 MB / 431.9 MB, free: 9.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.2625, allocations: 161.7 kB / 432.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.2627, allocations: 130.6 kB / 432.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2628, allocations: 334 kB / 432.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.2632, allocations: 173.9 kB / 432.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.2637, allocations: 471.6 kB / 433.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008854/0.2646, allocations: 0.6758 MB / 433.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.2646, allocations: 4 kB / 433.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001322/0.2659, allocations: 0.7908 MB / 434.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.266, allocations: 16.03 kB / 434.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.266, allocations: 8 kB / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.2663, allocations: 85.67 kB / 434.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/0.2668, allocations: 155.7 kB / 434.9 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/0.2691, allocations: 3.146 MB / 438 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005357/0.2697, allocations: 40.02 kB / 438.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.301e-05/0.2697, allocations: 36 kB / 438.1 MB, free: 2.957 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.0003525/0.2701, allocations: 269.5 kB / 438.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.2702, allocations: 86.97 kB / 438.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009477/0.2712, allocations: 0.4992 MB / 439 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2712, allocations: 8 kB / 439 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2712, allocations: 0 / 439 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.2712, allocations: 3.984 kB / 439 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.2732, allocations: 1.478 MB / 440.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2732, allocations: 7.938 kB / 440.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.2736, allocations: 71.91 kB / 440.5 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.2738, allocations: 73.89 kB / 440.6 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.2738, allocations: 12 kB / 440.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/0.276, allocations: 3.13 MB / 443.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.276, allocations: 4.062 kB / 443.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.2773, allocations: 0.7938 MB / 444.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.2776, allocations: 196.1 kB / 444.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2777, allocations: 27.8 kB / 444.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/0.2781, allocations: 27.98 kB / 444.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.503e-05/0.2782, allocations: 31.95 kB / 444.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.2782, allocations: 16 kB / 444.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007209/0.279, allocations: 0.5732 MB / 445.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.279, allocations: 4 kB / 445.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000767/0.2797, 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.0002072/0.28, allocations: 123.1 kB / 445.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.2811, allocations: 0.71 MB / 446.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2812, allocations: 0 / 446.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006586/0.2818, allocations: 453.1 kB / 446.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.2829, allocations: 233.3 kB / 447.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.2856, allocations: 1.759 MB / 448.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.2862, allocations: 1.013 MB / 449.9 MB, free: 6.582 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.2864, allocations: 59.44 kB / 450 MB, free: 6.523 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2864, allocations: 0 / 450 MB, free: 6.523 MB / 366.1 MB Notification: Performance of Templates: time 0.02425/0.3106, allocations: 21.41 MB / 471.4 MB, free: 1.16 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