Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001187/0.001187, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2722, allocations: 50.54 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009617/0.2818, allocations: 7.995 MB / 416.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004606/0.2865, allocations: 2.636 MB / 419.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.2875, allocations: 27.94 kB / 419.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.2891, allocations: 0.5638 MB / 420 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001224/0.2903, allocations: 492.4 kB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.2908, allocations: 243.7 kB / 420.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001537/0.2924, allocations: 1.432 MB / 422.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007917/0.2932, allocations: 0.5768 MB / 422.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008302/0.294, allocations: 0.5447 MB / 423.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006036/0.2946, allocations: 0.5872 MB / 423.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.2948, allocations: 136 kB / 424 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.2951, allocations: 168 kB / 424.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002108/0.2953, allocations: 278.9 kB / 424.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005769/0.2959, allocations: 0.6571 MB / 425.1 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0019/0.2978, allocations: 1.7 MB / 426.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.2979, allocations: 0 / 426.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.2979, allocations: 3.938 kB / 426.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.218e-05/0.2979, allocations: 3.984 kB / 426.8 MB, free: 15.37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002592/0.3005, allocations: 1.455 MB / 428.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3006, allocations: 8.031 kB / 428.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/0.3007, allocations: 156.3 kB / 428.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006013/0.3013, allocations: 180 kB / 428.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.3026, allocations: 0.7266 MB / 429.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-05/0.3026, allocations: 78 kB / 429.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3028, allocations: 99.95 kB / 429.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.3043, allocations: 0.919 MB / 430.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.293e-05/0.3044, allocations: 0 / 430.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.3045, allocations: 44 kB / 430.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.472e-05/0.3045, allocations: 24 kB / 430.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.3057, allocations: 0.6246 MB / 431.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004764/0.3105, allocations: 3.883 MB / 435 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005774/0.3111, allocations: 365.9 kB / 435.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.3114, allocations: 148.7 kB / 435.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.3114, allocations: 4 kB / 435.5 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.3115, allocations: 42.5 kB / 435.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.164e-06/0.3115, allocations: 0 / 435.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002321/0.3138, allocations: 1.204 MB / 436.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.3139, allocations: 85.11 kB / 436.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.3149, allocations: 0.8254 MB / 437.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.3149, allocations: 29.7 kB / 437.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000397/0.3153, allocations: 0.585 MB / 438.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.936e-05/0.3154, allocations: 130.9 kB / 438.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.3156, allocations: 126.6 kB / 438.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3157, allocations: 337.9 kB / 438.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/0.316, allocations: 149.9 kB / 439 MB, free: 2.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.3165, allocations: 460 kB / 439.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007988/0.3173, allocations: 0.632 MB / 440 MB, free: 1.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3174, allocations: 8 kB / 440.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001055/0.3184, allocations: 0.6926 MB / 440.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.3184, allocations: 8 kB / 440.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.3185, allocations: 12 kB / 440.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.3186, allocations: 37.31 kB / 440.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.3191, allocations: 159.7 kB / 441 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.3201, allocations: 1.394 MB / 442.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.3207, allocations: 31.98 kB / 442.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.3207, allocations: 36 kB / 442.4 MB, free: 14.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003446/0.3211, allocations: 261.5 kB / 442.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.3212, allocations: 95.44 kB / 442.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.3219, allocations: 370.2 kB / 443.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.3219, allocations: 11.81 kB / 443.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.3219, allocations: 0 / 443.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3219, allocations: 7.984 kB / 443.2 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.3236, allocations: 1.262 MB / 444.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3236, allocations: 7.938 kB / 444.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.3239, allocations: 76.12 kB / 444.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.497e-05/0.324, allocations: 20.84 kB / 444.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.324, allocations: 8 kB / 444.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008737/0.3249, allocations: 1.375 MB / 445.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3249, allocations: 4.031 kB / 445.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.3258, allocations: 0.6252 MB / 446.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.3261, allocations: 196.5 kB / 446.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.676e-05/0.3262, allocations: 8 kB / 446.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.3265, allocations: 31.91 kB / 446.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.764e-05/0.3266, allocations: 27.91 kB / 446.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.3266, allocations: 16 kB / 446.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009121/0.3276, allocations: 0.5615 MB / 447.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3276, allocations: 0 / 447.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006656/0.3282, allocations: 188 kB / 447.5 MB, free: 9.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001279/0.3295, allocations: 1.2 MB / 448.7 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009221/0.3305, allocations: 0.5081 MB / 449.3 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3305, allocations: 0 / 449.3 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003829/0.3309, allocations: 267.3 kB / 449.5 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009665/0.3318, allocations: 210.8 kB / 449.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008769/0.3406, allocations: 7.106 MB / 456.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/0.3411, allocations: 1.004 MB / 457.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003677/0.3415, allocations: 106.9 kB / 457.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003835/0.3419, allocations: 363.3 kB / 458.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3419, allocations: 0 / 458.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0458/0.3877, allocations: 17.94 MB / 476.2 MB, free: 12.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.43, allocations: 4.062 kB / 476.2 MB, free: 12.33 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches