Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",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.001577/0.001576, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001726/0.001726, allocations: 188 kB / 18 MB, free: 5.102 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.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009576/0.0009576, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2282, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002507/0.2307, allocations: 1.495 MB / 401.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.2325, allocations: 0.8558 MB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.611e-05/0.2325, allocations: 0 / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.186e-05/0.2326, allocations: 11.92 kB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.773e-05/0.2327, allocations: 23.8 kB / 402.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.233, allocations: 47.94 kB / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.2332, allocations: 135.7 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.695e-05/0.2333, allocations: 31.73 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005453/0.2338, allocations: 0.5809 MB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.234, allocations: 63.77 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.234, allocations: 12 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.717e-05/0.234, allocations: 11.94 kB / 403.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.787e-05/0.2341, allocations: 71.69 kB / 403.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2343, allocations: 115.2 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003638/0.2346, allocations: 377.4 kB / 404 MB, free: 4.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2346, allocations: 4 kB / 404.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2347, allocations: 0 / 404.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.2347, allocations: 0 / 404.1 MB, free: 4.988 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007616/0.2354, allocations: 0.7305 MB / 404.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2355, allocations: 16.02 kB / 404.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.091e-05/0.2355, allocations: 34.75 kB / 404.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.2356, allocations: 36.7 kB / 404.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.2359, allocations: 274.7 kB / 405.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.2359, allocations: 4.375 kB / 405.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.2359, allocations: 16.38 kB / 405.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.2362, allocations: 131.7 kB / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.2362, allocations: 0 / 405.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.2363, allocations: 4 kB / 405.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2363, allocations: 7.938 kB / 405.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.2364, allocations: 55.97 kB / 405.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006494/0.2371, allocations: 464.5 kB / 405.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.2373, allocations: 106.4 kB / 405.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.2374, allocations: 80.89 kB / 406 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.2375, allocations: 4 kB / 406 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003271/0.2378, allocations: 202.7 kB / 406.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.2378, allocations: 0 / 406.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007634/0.2386, allocations: 488.2 kB / 406.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.9e-05/0.2387, allocations: 166.2 kB / 406.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005641/0.2392, allocations: 0.5168 MB / 407.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.2393, allocations: 29.7 kB / 407.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.2393, allocations: 101.1 kB / 407.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.2394, allocations: 31.8 kB / 407.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.2395, allocations: 81.56 kB / 407.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.2396, allocations: 322.8 kB / 407.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.2397, allocations: 59.97 kB / 408 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.2399, allocations: 77.62 kB / 408 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.2402, allocations: 349.5 kB / 408.4 MB, free: 292 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2402, allocations: 64 / 408.4 MB, free: 292 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005279/0.2408, allocations: 392.3 kB / 408.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.852e-05/0.2408, allocations: 122.8 kB / 408.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2409, allocations: 7.984 kB / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2409, allocations: 0 / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.69e-05/0.2409, allocations: 0 / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.2409, allocations: 7.969 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.241, allocations: 8 kB / 408.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.2411, allocations: 59.98 kB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003124/0.2414, allocations: 366.7 kB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5e-05/0.2415, allocations: 39.77 kB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.602e-05/0.2416, allocations: 63.16 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2416, allocations: 4 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2416, allocations: 0 / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2416, allocations: 0 / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009212/0.2425, allocations: 0.8212 MB / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2426, allocations: 0 / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-06/0.2426, allocations: 4 kB / 410.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2426, allocations: 0 / 410.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.2426, allocations: 16.09 kB / 410.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2426, allocations: 7.938 kB / 410.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2426, allocations: 3.938 kB / 410.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/0.2433, allocations: 0.5396 MB / 410.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.2436, allocations: 248.6 kB / 411.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.2436, allocations: 12 kB / 411.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.2438, allocations: 11.98 kB / 411.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.2439, allocations: 24.11 kB / 411.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.244, allocations: 67.92 kB / 411.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004231/0.2444, allocations: 382.9 kB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2444, allocations: 0 / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.2447, allocations: 44 kB / 411.6 MB, free: 12.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009082/0.2456, allocations: 1.094 MB / 412.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004896/0.2461, allocations: 445.5 kB / 413.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2461, allocations: 0 / 413.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003589/0.2465, allocations: 373.6 kB / 413.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006317/0.2471, allocations: 126.6 kB / 413.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.2502, allocations: 2.757 MB / 416.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.2506, allocations: 0.8058 MB / 417.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.532e-05/0.2507, allocations: 8.656 kB / 417.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.59e-05/0.2507, allocations: 23.44 kB / 417.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2507, allocations: 0 / 417.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.2725, allocations: 6.045 MB / 423.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.578/7.85, allocations: 0 / 423.2 MB, free: 0.9258 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches