Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001592/0.001592, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001993/0.001993, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2355, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002305/0.2379, allocations: 1.51 MB / 410.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.2397, allocations: 0.8912 MB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.777e-05/0.2397, allocations: 4 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.948e-05/0.2398, allocations: 3.938 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.709e-05/0.2399, allocations: 15.86 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.2402, allocations: 47.88 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.2404, allocations: 147.7 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.765e-05/0.2405, allocations: 16.22 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005122/0.241, allocations: 0.5732 MB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.2411, allocations: 75.67 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.451e-05/0.2412, allocations: 12 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.619e-05/0.2412, allocations: 8 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.179e-05/0.2413, allocations: 63.77 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.2414, allocations: 119.1 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.2417, allocations: 378.6 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2417, allocations: 0 / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2417, allocations: 0 / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2418, allocations: 0 / 412.6 MB, free: 13.66 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006801/0.2424, allocations: 0.7166 MB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2425, allocations: 12.03 kB / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.893e-05/0.2425, allocations: 38.75 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.708e-05/0.2426, allocations: 32.56 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.2429, allocations: 278.3 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.2429, allocations: 12.38 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.243, allocations: 8.375 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002914/0.2432, allocations: 137.1 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.2433, allocations: 3.938 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.2433, allocations: 11.94 kB / 413.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2433, allocations: 4 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.2434, allocations: 55.97 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006058/0.2441, allocations: 468.4 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.2442, allocations: 90.55 kB / 414.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.2444, allocations: 84.89 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.507e-06/0.2444, allocations: 11.92 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003098/0.2447, allocations: 202.7 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.2447, allocations: 0 / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006967/0.2454, allocations: 475.9 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.2455, allocations: 170.2 kB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005954/0.2461, allocations: 0.5091 MB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2462, allocations: 33.64 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/0.2462, allocations: 93.14 kB / 416 MB, free: 9.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.2463, allocations: 31.61 kB / 416 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.2464, allocations: 85.42 kB / 416.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.949e-05/0.2465, allocations: 322.8 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2466, allocations: 63.95 kB / 416.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.2467, allocations: 77.67 kB / 416.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.247, allocations: 347.4 kB / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2471, allocations: 0 / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005026/0.2476, allocations: 384.3 kB / 417.3 MB, free: 8.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.301e-05/0.2477, allocations: 122.8 kB / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2477, allocations: 4 kB / 417.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.2477, allocations: 4.031 kB / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.087e-05/0.2477, allocations: 3.938 kB / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.2477, allocations: 0 / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.2479, allocations: 19.91 kB / 417.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.061e-05/0.248, allocations: 63.94 kB / 417.5 MB, free: 8.328 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.0003241/0.2483, allocations: 362.7 kB / 417.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.2483, allocations: 43.53 kB / 417.9 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.067e-05/0.2484, allocations: 59.16 kB / 417.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2485, allocations: 8 kB / 418 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2485, allocations: 112 / 418 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2485, allocations: 8.047 kB / 418 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008585/0.2493, allocations: 0.8208 MB / 418.8 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2494, allocations: 3.984 kB / 418.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-06/0.2494, allocations: 4 kB / 418.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2494, allocations: 0 / 418.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.2494, allocations: 8 kB / 418.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2494, allocations: 4 kB / 418.8 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2494, allocations: 3.938 kB / 418.8 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005838/0.25, allocations: 0.5446 MB / 419.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.2503, allocations: 236.5 kB / 419.6 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.809e-05/0.2504, allocations: 12 kB / 419.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2505, allocations: 11.98 kB / 419.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2506, allocations: 31.89 kB / 419.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.2507, allocations: 63.94 kB / 419.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004071/0.2511, allocations: 386.8 kB / 420.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2511, allocations: 4 kB / 420.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002779/0.2514, allocations: 44 kB / 420.1 MB, free: 5.523 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.0008794/0.2523, allocations: 1.085 MB / 421.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004586/0.2527, allocations: 437.5 kB / 421.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.2528, allocations: 4.062 kB / 421.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.253, allocations: 377.6 kB / 422 MB, free: 3.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000604/0.2537, allocations: 129 kB / 422.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.2567, allocations: 2.746 MB / 424.9 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.2571, allocations: 0.7983 MB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.698e-05/0.2571, allocations: 8.656 kB / 425.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.2572, allocations: 31.42 kB / 425.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2572, allocations: 0 / 425.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.2799, allocations: 6.124 MB / 431.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.859, allocations: 7.031 kB / 431.9 MB, free: 9.516 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/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_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,nXFERGATE.y Variables in the result:e_table.n,e_table.t[1],e_table.t[2],e_table.t[3],e_table.x[1],e_table.x[2],e_table.x[3],e_table.y,e_table.y0,nXFERGATE.enable,nXFERGATE.tHL,nXFERGATE.tLH,nXFERGATE.x,nXFERGATE.y,time,x_table.n,x_table.t[1],x_table.t[2],x_table.x[1],x_table.x[2],x_table.y,x_table.y0