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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 55.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2429, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01003/0.2529, allocations: 8.282 MB / 430.9 MB, free: 6.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004739/0.2576, allocations: 2.715 MB / 433.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007952/0.2584, allocations: 31.81 kB / 433.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.2599, allocations: 0.5676 MB / 434.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.261, allocations: 0.508 MB / 434.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005015/0.2615, allocations: 263.6 kB / 435 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001629/0.2632, allocations: 1.498 MB / 436.5 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006437/0.2638, allocations: 407.3 kB / 436.9 MB, free: 256 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007384/0.2645, allocations: 0.5799 MB / 437.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007645/0.2653, allocations: 0.6105 MB / 438.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.2655, allocations: 140 kB / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.2658, allocations: 180 kB / 438.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000239/0.266, allocations: 282.9 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006202/0.2667, allocations: 0.6803 MB / 439.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001939/0.2686, allocations: 1.755 MB / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.2686, allocations: 0 / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2686, allocations: 0 / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.2686, allocations: 4 kB / 441.1 MB, free: 12.02 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002597/0.2712, allocations: 1.446 MB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.2713, allocations: 8.031 kB / 442.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001835/0.2714, allocations: 152.4 kB / 442.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006568/0.2721, allocations: 196 kB / 442.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.2734, allocations: 0.6967 MB / 443.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.323e-05/0.2734, allocations: 74 kB / 443.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.2736, allocations: 100 kB / 443.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.2752, allocations: 0.9386 MB / 444.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.702e-05/0.2752, allocations: 7.891 kB / 444.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-05/0.2753, allocations: 43.98 kB / 444.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.2753, allocations: 28 kB / 444.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.2766, allocations: 0.6481 MB / 445.4 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005174/0.2818, allocations: 3.805 MB / 449.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.2825, allocations: 356.8 kB / 449.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000606/0.2831, allocations: 272.6 kB / 449.9 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.2831, allocations: 7.984 kB / 449.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.2831, allocations: 34.56 kB / 449.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.973e-06/0.2831, allocations: 0 / 449.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002863/0.286, allocations: 1.342 MB / 451.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.633e-05/0.2861, allocations: 85.11 kB / 451.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.2872, allocations: 0.8372 MB / 452.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.2872, allocations: 37.7 kB / 452.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004441/0.2877, allocations: 0.5777 MB / 452.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.2878, allocations: 170.6 kB / 452.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.288, allocations: 134.6 kB / 453.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2881, allocations: 334 kB / 453.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.2885, allocations: 173.9 kB / 453.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005841/0.2891, allocations: 471.6 kB / 454 MB, free: 14.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.2901, allocations: 0.6835 MB / 454.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.2901, allocations: 0 / 454.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001393/0.2915, allocations: 0.7908 MB / 455.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.2915, allocations: 12 kB / 455.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.2915, allocations: 8 kB / 455.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.2918, allocations: 85.61 kB / 455.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005189/0.2923, allocations: 159.9 kB / 455.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/0.295, allocations: 2.94 MB / 458.7 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005653/0.2955, allocations: 39.88 kB / 458.7 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/0.2956, allocations: 32 kB / 458.8 MB, free: 9.414 MB / 366.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.0004063/0.296, allocations: 269.5 kB / 459 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.2961, allocations: 91.44 kB / 459.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.2972, allocations: 0.499 MB / 459.6 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.2972, allocations: 8 kB / 459.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.2972, allocations: 0 / 459.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.2972, allocations: 0 / 459.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.2995, allocations: 1.446 MB / 461.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2995, allocations: 0 / 461.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003336/0.2999, allocations: 76.06 kB / 461.2 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/0.3001, allocations: 81.64 kB / 461.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.3001, allocations: 8 kB / 461.2 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.3027, allocations: 2.919 MB / 464.2 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3028, allocations: 4.031 kB / 464.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.3042, allocations: 0.8073 MB / 465 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.3045, allocations: 135.3 kB / 465.1 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.911e-05/0.3046, allocations: 8 kB / 465.1 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004422/0.305, allocations: 31.97 kB / 465.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.027e-05/0.3051, allocations: 31.94 kB / 465.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.3051, allocations: 16 kB / 465.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008349/0.306, allocations: 0.5732 MB / 465.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.306, allocations: 0 / 465.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008471/0.3068, allocations: 208 kB / 466 MB, free: 1.84 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.001783/0.3086, allocations: 1.37 MB / 467.3 MB, free: 420 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.31, allocations: 0.6944 MB / 468 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.31, allocations: 4.125 kB / 468 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007076/0.3107, allocations: 433 kB / 468.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.3119, allocations: 237.9 kB / 468.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.3231, allocations: 7.486 MB / 476.2 MB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006921/0.3238, allocations: 1.009 MB / 477.2 MB, free: 6.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004208/0.3242, allocations: 107.3 kB / 477.3 MB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005106/0.3247, allocations: 395.3 kB / 477.7 MB, free: 5.551 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3247, allocations: 0 / 477.7 MB, free: 5.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06253/0.3873, allocations: 20.05 MB / 497.7 MB, free: 1.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.08, allocations: 0 / 497.7 MB, free: 1.762 MB / 398.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.15717358800248]