Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.001661/0.001662, allocations: 200.1 kB / 18 MB, free: 5.168 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 43.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2839, allocations: 49.45 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008775/0.2928, allocations: 8.071 MB / 408.3 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.2973, allocations: 2.644 MB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008512/0.2982, allocations: 27.94 kB / 411 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.2997, allocations: 0.5637 MB / 411.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.3008, allocations: 0.5003 MB / 412.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.3013, allocations: 247.7 kB / 412.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001517/0.3028, allocations: 1.477 MB / 413.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007489/0.3036, allocations: 0.5807 MB / 414.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007769/0.3043, allocations: 0.5564 MB / 414.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006224/0.305, allocations: 0.5911 MB / 415.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.3052, allocations: 136 kB / 415.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003062/0.3055, allocations: 191.9 kB / 415.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.3057, allocations: 279 kB / 416.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005627/0.3063, allocations: 0.6609 MB / 416.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.308, allocations: 1.735 MB / 418.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.308, allocations: 0 / 418.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.308, allocations: 0 / 418.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.308, allocations: 0 / 418.5 MB, free: 6.453 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002265/0.3103, allocations: 1.486 MB / 420 MB, free: 4.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3103, allocations: 12.02 kB / 420 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.3106, allocations: 152.4 kB / 420.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006423/0.3112, allocations: 196 kB / 420.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.3124, allocations: 0.7461 MB / 421.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.032e-05/0.3125, allocations: 70 kB / 421.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.3126, allocations: 100 kB / 421.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.3142, allocations: 0.9308 MB / 422.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.54e-05/0.3142, allocations: 7.938 kB / 422.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-05/0.3143, allocations: 44 kB / 422.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.3143, allocations: 24 kB / 422.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.3155, allocations: 0.6286 MB / 422.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004636/0.3201, allocations: 3.896 MB / 426.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.3208, allocations: 436.9 kB / 427.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/0.3214, allocations: 269.3 kB / 427.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.3214, allocations: 8.312 kB / 427.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.3215, allocations: 46.81 kB / 427.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.3215, allocations: 0 / 427.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002556/0.324, allocations: 1.415 MB / 428.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.3241, allocations: 85.05 kB / 429 MB, free: 11.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009633/0.3251, allocations: 0.8253 MB / 429.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.3251, allocations: 37.7 kB / 429.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003841/0.3255, allocations: 0.5696 MB / 430.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.3256, allocations: 170.6 kB / 430.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.3258, allocations: 126.6 kB / 430.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3259, allocations: 337.9 kB / 431.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/0.3262, allocations: 165.9 kB / 431.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00047/0.3267, allocations: 464 kB / 431.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008079/0.3275, allocations: 0.6585 MB / 432.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3275, allocations: 0 / 432.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00119/0.3287, allocations: 0.7749 MB / 433.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3288, allocations: 8 kB / 433.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.3288, allocations: 12 kB / 433.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002583/0.3291, allocations: 85.86 kB / 433.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/0.3295, allocations: 147.8 kB / 433.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/0.3318, allocations: 3.146 MB / 436.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005249/0.3324, allocations: 40.02 kB / 436.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.3324, allocations: 32 kB / 436.6 MB, free: 3.281 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 (84): * Single equations (assignments): 82 * 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.0003445/0.3328, allocations: 269.9 kB / 436.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3329, allocations: 91.44 kB / 436.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008528/0.3338, allocations: 491.2 kB / 437.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3338, allocations: 4 kB / 437.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3338, allocations: 0 / 437.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3338, allocations: 7.984 kB / 437.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.3358, allocations: 1.447 MB / 438.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3358, allocations: 0 / 438.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.3361, allocations: 75.89 kB / 438.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002059/0.3363, allocations: 65.91 kB / 439 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.3364, allocations: 19.98 kB / 439 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/0.3386, allocations: 3.127 MB / 442.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3386, allocations: 0 / 442.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.3399, allocations: 0.7706 MB / 442.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003565/0.3403, allocations: 212.4 kB / 443.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.3405, allocations: 15.94 kB / 443.1 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004819/0.3409, allocations: 23.97 kB / 443.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.014e-05/0.341, allocations: 39.91 kB / 443.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.3411, allocations: 12 kB / 443.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000872/0.342, allocations: 0.5615 MB / 443.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.342, allocations: 0 / 443.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009137/0.3429, allocations: 208 kB / 444 MB, free: 11.42 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 (38): * Single equations (assignments): 36 * 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.001547/0.3444, allocations: 1.338 MB / 445.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.3456, allocations: 0.6942 MB / 446 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3456, allocations: 3.938 kB / 446 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006033/0.3462, allocations: 434.1 kB / 446.4 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.3473, allocations: 227 kB / 446.7 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.3574, allocations: 7.32 MB / 454 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006586/0.3581, allocations: 1.005 MB / 455 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004161/0.3585, allocations: 111.2 kB / 455.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.359, allocations: 371.3 kB / 455.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.359, allocations: 0 / 455.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05028/0.4093, allocations: 19.07 MB / 474.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.38, allocations: 11.88 kB / 474.5 MB, free: 12.56 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches