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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001791/0.001791, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001931/0.001931, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.445/1.445, allocations: 225.7 MB / 252.5 MB, free: 12.85 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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 47.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2526, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01003/0.2627, allocations: 7.15 MB / 429.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004615/0.2673, allocations: 2.455 MB / 432.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000879/0.2682, allocations: 27.88 kB / 432.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001657/0.2698, allocations: 0.5188 MB / 432.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.2712, allocations: 0.4964 MB / 433.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.2718, allocations: 243.7 kB / 433.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001937/0.2738, allocations: 1.475 MB / 434.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007277/0.2745, allocations: 367.3 kB / 435.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009362/0.2754, allocations: 0.572 MB / 435.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008802/0.2763, allocations: 0.513 MB / 436.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002522/0.2765, allocations: 143.9 kB / 436.5 MB, free: 372 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004537/0.277, allocations: 172 kB / 436.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.2773, allocations: 287 kB / 437 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005806/0.2778, allocations: 0.5365 MB / 437.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002016/0.2799, allocations: 1.739 MB / 439.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2799, allocations: 4 kB / 439.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2799, allocations: 0 / 439.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.166e-05/0.2799, allocations: 0 / 439.3 MB, free: 13.62 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002534/0.2824, allocations: 1.407 MB / 440.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.2825, allocations: 12.03 kB / 440.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001795/0.2826, allocations: 148.4 kB / 440.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000643/0.2833, allocations: 192 kB / 441 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.2847, allocations: 0.6805 MB / 441.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.944e-05/0.2847, allocations: 70 kB / 441.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.2849, allocations: 100 kB / 441.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.2866, allocations: 1.035 MB / 442.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.2866, allocations: 3.953 kB / 442.9 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.2867, allocations: 44 kB / 442.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.2867, allocations: 24 kB / 443 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.2879, allocations: 0.6324 MB / 443.6 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005469/0.2934, allocations: 3.49 MB / 447.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006825/0.2941, allocations: 357.1 kB / 447.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005858/0.2947, allocations: 249.4 kB / 447.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.2947, allocations: 8.312 kB / 447.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.2947, allocations: 38.89 kB / 447.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.2948, allocations: 0 / 447.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002843/0.2976, allocations: 1.267 MB / 449 MB, free: 3.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.2977, allocations: 85.05 kB / 449.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.2989, allocations: 0.8408 MB / 449.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.2989, allocations: 41.7 kB / 449.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004631/0.2994, allocations: 0.5619 MB / 450.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.2995, allocations: 166.6 kB / 450.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.2997, allocations: 126.6 kB / 450.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2999, allocations: 334 kB / 451.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.3002, allocations: 165.9 kB / 451.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006319/0.3009, allocations: 485.7 kB / 451.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.3019, allocations: 0.6624 MB / 452.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.3019, allocations: 4 kB / 452.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001481/0.3034, allocations: 0.7632 MB / 453.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3034, allocations: 8 kB / 453.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.3034, allocations: 12 kB / 453.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.3037, allocations: 93.8 kB / 453.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/0.3042, allocations: 147.8 kB / 453.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.3069, allocations: 2.932 MB / 456.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005958/0.3075, allocations: 39.88 kB / 456.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.694e-05/0.3076, allocations: 32 kB / 456.4 MB, free: 11.46 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 (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.0004307/0.308, allocations: 269.5 kB / 456.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.3082, allocations: 91.42 kB / 456.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009921/0.3092, allocations: 491.5 kB / 457.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3092, allocations: 4 kB / 457.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3092, allocations: 4 kB / 457.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3092, allocations: 4 kB / 457.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.3115, allocations: 1.306 MB / 458.6 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3115, allocations: 4.344 kB / 458.6 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.3118, allocations: 75.89 kB / 458.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002086/0.312, allocations: 73.67 kB / 458.7 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.3121, allocations: 8 kB / 458.8 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.3147, allocations: 2.908 MB / 461.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.3147, allocations: 7.969 kB / 461.7 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.3161, allocations: 0.76 MB / 462.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.3165, allocations: 131.4 kB / 462.6 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.3166, allocations: 12 kB / 462.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/0.317, allocations: 27.98 kB / 462.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.165e-05/0.3171, allocations: 43.81 kB / 462.6 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.3172, allocations: 12 kB / 462.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008726/0.318, allocations: 0.5615 MB / 463.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.318, allocations: 0 / 463.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008692/0.3189, allocations: 208 kB / 463.4 MB, free: 4.105 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.001768/0.3207, allocations: 1.342 MB / 464.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.322, allocations: 0.663 MB / 465.4 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.322, allocations: 4.062 kB / 465.4 MB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.3226, allocations: 421.2 kB / 465.8 MB, free: 1.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.3237, allocations: 222.1 kB / 466.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.3354, allocations: 7.325 MB / 473.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/0.3359, allocations: 421.8 kB / 473.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004288/0.3364, allocations: 107.2 kB / 473.9 MB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.3369, allocations: 371.3 kB / 474.3 MB, free: 8.691 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3369, allocations: 0 / 474.3 MB, free: 8.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0647/0.4016, allocations: 20.89 MB / 495.1 MB, free: 4.164 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.55, allocations: 0 / 495.1 MB, free: 4.164 MB / 398.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.558689545374364]