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.001733/0.001734, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001777/0.001777, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 51.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2973, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009923/0.3073, allocations: 8.078 MB / 408.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004872/0.3122, allocations: 2.637 MB / 411 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.3134, allocations: 23.94 kB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.3152, allocations: 0.548 MB / 411.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.3167, allocations: 468.3 kB / 412 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.3173, allocations: 251.7 kB / 412.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.3192, allocations: 1.469 MB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009384/0.3202, allocations: 0.5807 MB / 414.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009614/0.3211, allocations: 0.5525 MB / 414.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008489/0.322, allocations: 0.5988 MB / 415.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002132/0.3222, allocations: 136 kB / 415.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000401/0.3226, allocations: 180 kB / 415.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.3229, allocations: 279 kB / 416 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007683/0.3237, allocations: 0.661 MB / 416.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00227/0.326, allocations: 1.735 MB / 418.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.326, allocations: 4 kB / 418.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.326, allocations: 0 / 418.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.465e-05/0.326, allocations: 0 / 418.4 MB, free: 6.547 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.002687/0.3287, allocations: 1.483 MB / 419.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3288, allocations: 12.03 kB / 419.9 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001809/0.329, allocations: 152.4 kB / 420.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006779/0.3296, allocations: 192 kB / 420.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.331, allocations: 0.746 MB / 421 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.3311, allocations: 78 kB / 421.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.3313, allocations: 96 kB / 421.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.3329, allocations: 0.9307 MB / 422.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.648e-05/0.333, allocations: 7.953 kB / 422.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.031e-05/0.3331, allocations: 40 kB / 422.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.702e-05/0.3331, allocations: 24 kB / 422.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.3344, allocations: 0.6402 MB / 422.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.3399, allocations: 3.893 MB / 426.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007693/0.3407, allocations: 446.3 kB / 427.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/0.3413, allocations: 273.2 kB / 427.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.3413, allocations: 4.328 kB / 427.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.3414, allocations: 38.89 kB / 427.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.074e-06/0.3414, allocations: 0 / 427.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002804/0.3442, allocations: 1.423 MB / 428.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.88e-05/0.3443, allocations: 81.11 kB / 428.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.3454, allocations: 0.8253 MB / 429.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.3455, allocations: 33.7 kB / 429.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004449/0.3459, allocations: 0.5657 MB / 430.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.346, allocations: 162.6 kB / 430.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.3462, allocations: 138.6 kB / 430.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3464, allocations: 334 kB / 431 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/0.3468, allocations: 165.9 kB / 431.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000571/0.3473, allocations: 464 kB / 431.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009824/0.3483, allocations: 0.6507 MB / 432.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.3484, allocations: 8 kB / 432.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001369/0.3497, allocations: 0.7748 MB / 433 MB, free: 7.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3498, allocations: 8 kB / 433 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.3498, allocations: 12 kB / 433.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002999/0.3501, allocations: 89.86 kB / 433.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004845/0.3506, allocations: 151.7 kB / 433.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/0.3534, allocations: 3.146 MB / 436.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005622/0.354, allocations: 35.94 kB / 436.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.3541, allocations: 32 kB / 436.5 MB, free: 3.371 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.0004343/0.3545, allocations: 266.1 kB / 436.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3546, allocations: 87.44 kB / 436.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009737/0.3556, allocations: 499.2 kB / 437.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3556, allocations: 4 kB / 437.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3556, allocations: 0 / 437.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3557, allocations: 3.984 kB / 437.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.3579, allocations: 1.443 MB / 438.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.3579, allocations: 8.203 kB / 438.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.3582, allocations: 75.84 kB / 438.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.3584, allocations: 69.67 kB / 438.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.3585, allocations: 8 kB / 438.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.3611, allocations: 3.135 MB / 442.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.3611, allocations: 4.031 kB / 442.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.3624, allocations: 0.7669 MB / 442.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000303/0.3627, allocations: 212.4 kB / 443.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.652e-05/0.3628, allocations: 16 kB / 443.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000394/0.3632, allocations: 27.97 kB / 443.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.875e-05/0.3633, allocations: 31.95 kB / 443.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.3633, allocations: 12 kB / 443.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008198/0.3641, allocations: 0.5693 MB / 443.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3642, allocations: 0 / 443.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008434/0.365, allocations: 200 kB / 443.9 MB, free: 11.51 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.001693/0.3667, allocations: 1.341 MB / 445.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.368, allocations: 0.6907 MB / 445.9 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.368, allocations: 0 / 445.9 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000688/0.3687, allocations: 445.1 kB / 446.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3698, allocations: 225.9 kB / 446.6 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.3808, allocations: 7.316 MB / 453.9 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007026/0.3815, allocations: 1.009 MB / 454.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004216/0.382, allocations: 103.2 kB / 455 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004878/0.3825, allocations: 379.2 kB / 455.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3825, allocations: 0 / 455.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05883/0.4413, allocations: 19.07 MB / 474.5 MB, free: 12.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.82, allocations: 8 kB / 474.5 MB, free: 12.66 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