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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001063/0.001063, allocations: 106.2 kB / 16.92 MB, free: 6.145 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.001083/0.001083, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.299/1.299, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009452/0.0009453, allocations: 47.2 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08514, allocations: 49.43 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009571/0.09475, allocations: 8.226 MB / 358.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00591/0.1007, allocations: 2.684 MB / 361.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009804/0.1017, allocations: 31.81 kB / 361.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.1036, allocations: 0.5481 MB / 361.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.1052, allocations: 476.2 kB / 362.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007821/0.106, allocations: 271.6 kB / 362.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002267/0.1083, allocations: 1.506 MB / 363.9 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.1095, allocations: 0.5884 MB / 364.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008958/0.1104, allocations: 0.5564 MB / 365 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008489/0.1112, allocations: 0.6067 MB / 365.6 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002684/0.1115, allocations: 140 kB / 365.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005053/0.112, allocations: 184 kB / 366 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003104/0.1124, allocations: 290.9 kB / 366.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008089/0.1132, allocations: 0.6687 MB / 366.9 MB, free: 3.477 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.1152, allocations: 1.728 MB / 368.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1152, allocations: 8 kB / 368.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1152, allocations: 0 / 368.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.1153, allocations: 0 / 368.6 MB, free: 1.734 MB / 302.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.002616/0.1179, allocations: 1.467 MB / 370.1 MB, free: 220 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1179, allocations: 20.02 kB / 370.1 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.1181, allocations: 144.4 kB / 370.3 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1255/0.2436, allocations: 185.6 kB / 370.5 MB, free: 25.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.2448, allocations: 0.7543 MB / 371.2 MB, free: 25.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.2449, allocations: 74.06 kB / 371.3 MB, free: 25.13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.245, allocations: 102.5 kB / 371.4 MB, free: 25.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.2466, allocations: 0.9497 MB / 372.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.2466, allocations: 5.188 kB / 372.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.218e-05/0.2467, allocations: 42.38 kB / 372.4 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.2467, allocations: 23.84 kB / 372.4 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2479, allocations: 0.651 MB / 373.1 MB, free: 24.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004272/0.2522, allocations: 3.943 MB / 377 MB, free: 22.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.2529, allocations: 454 kB / 377.4 MB, free: 21.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005365/0.2534, allocations: 269.5 kB / 377.7 MB, free: 21.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.2534, allocations: 8.125 kB / 377.7 MB, free: 21.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.682e-05/0.2535, allocations: 41.53 kB / 377.8 MB, free: 21.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.984e-06/0.2535, allocations: 0 / 377.8 MB, free: 21.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002696/0.2562, allocations: 1.543 MB / 379.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.2562, allocations: 82.48 kB / 379.4 MB, free: 20.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.2572, allocations: 0.8339 MB / 380.2 MB, free: 20.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.2573, allocations: 36.02 kB / 380.2 MB, free: 20.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.2575, allocations: 0.5616 MB / 380.8 MB, free: 19.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.2576, allocations: 162 kB / 381 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.2578, allocations: 135.2 kB / 381.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.2579, allocations: 340.8 kB / 381.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.2582, allocations: 175.8 kB / 381.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003918/0.2586, allocations: 472 kB / 382.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007849/0.2594, allocations: 0.679 MB / 382.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2594, allocations: 3.125 kB / 382.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001262/0.2607, allocations: 0.7811 MB / 383.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2607, allocations: 8.5 kB / 383.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.2607, allocations: 11.14 kB / 383.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.261, allocations: 84.86 kB / 383.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004994/0.2615, allocations: 154.4 kB / 383.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001666/0.2632, allocations: 3.156 MB / 386.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/0.2637, allocations: 42.22 kB / 387 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.441e-05/0.2638, allocations: 36.67 kB / 387 MB, free: 14.56 MB / 302.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.0002813/0.264, allocations: 266.5 kB / 387.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.2642, allocations: 86.88 kB / 387.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000915/0.2651, allocations: 0.5 MB / 387.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.2651, allocations: 4.156 kB / 387.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2651, allocations: 2.219 kB / 387.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2651, allocations: 3 kB / 387.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.2671, allocations: 1.473 MB / 389.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.2672, allocations: 6.562 kB / 389.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.2675, allocations: 75.48 kB / 389.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001826/0.2677, allocations: 78.09 kB / 389.5 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.2677, allocations: 13.33 kB / 389.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.2693, allocations: 3.121 MB / 392.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2693, allocations: 1.375 kB / 392.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.2704, allocations: 0.8039 MB / 393.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.2706, allocations: 196.6 kB / 393.6 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.2707, allocations: 12.34 kB / 393.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.2712, allocations: 30.31 kB / 393.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.65e-05/0.2713, allocations: 43.67 kB / 393.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.2713, allocations: 10.31 kB / 393.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000675/0.272, allocations: 0.5758 MB / 394.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.82e-07/0.272, allocations: 0 / 394.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008383/0.2729, allocations: 206.5 kB / 394.5 MB, free: 9.121 MB / 302.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.001347/0.2742, allocations: 1.373 MB / 395.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.2753, allocations: 0.719 MB / 396.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.2753, allocations: 5.984 kB / 396.6 MB, free: 7.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005236/0.2758, allocations: 459.4 kB / 397 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.2769, allocations: 220.2 kB / 397.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00818/0.2851, allocations: 7.985 MB / 405.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.2855, allocations: 1.009 MB / 406.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004195/0.2859, allocations: 111.3 kB / 406.4 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004346/0.2863, allocations: 387.2 kB / 406.7 MB, free: 15.33 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2863, allocations: 3.938 kB / 406.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04491/0.3313, allocations: 19.07 MB / 425.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.298/9.629, allocations: 11.83 kB / 425.8 MB, free: 12.55 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_SinglePhase.fmu > 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.csv","/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