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.001369/0.001369, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 57.38 kB / 307 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1127, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003275/0.116, allocations: 1.509 MB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1182, allocations: 0.8943 MB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1184, allocations: 0 / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.1185, allocations: 7.922 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.1187, allocations: 15.81 kB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.119, allocations: 43.94 kB / 360 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.1193, allocations: 147.7 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.1194, allocations: 16.22 kB / 360.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006678/0.1201, allocations: 0.5654 MB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.1203, allocations: 75.67 kB / 360.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-05/0.1204, allocations: 12 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.97e-05/0.1204, allocations: 8 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1205, allocations: 63.77 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.1207, allocations: 119.1 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004433/0.1212, allocations: 370.7 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1212, allocations: 0 / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1212, allocations: 0 / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.1212, allocations: 0 / 361.4 MB, free: 10.12 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009863/0.1222, allocations: 0.7229 MB / 362.1 MB, free: 9.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.1223, allocations: 12.03 kB / 362.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.286e-05/0.1223, allocations: 38.75 kB / 362.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.161e-05/0.1224, allocations: 36.47 kB / 362.2 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.1228, allocations: 274.3 kB / 362.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.1228, allocations: 8.375 kB / 362.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.1228, allocations: 8.375 kB / 362.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.1232, allocations: 141.6 kB / 362.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.1232, allocations: 0 / 362.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.1232, allocations: 4 kB / 362.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1232, allocations: 4 kB / 362.6 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.1234, allocations: 55.97 kB / 362.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007178/0.1241, allocations: 468.5 kB / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.1243, allocations: 94.55 kB / 363.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.1245, allocations: 88.94 kB / 363.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.1245, allocations: 3.984 kB / 363.3 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004075/0.1249, allocations: 217.8 kB / 363.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.064e-06/0.1249, allocations: 0 / 363.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008643/0.1258, allocations: 475.8 kB / 364 MB, free: 7.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.1259, allocations: 170.2 kB / 364.2 MB, free: 7.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007043/0.1266, allocations: 0.5129 MB / 364.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/0.1267, allocations: 33.7 kB / 364.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.343e-05/0.1268, allocations: 97.12 kB / 364.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.1268, allocations: 31.58 kB / 364.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.127, allocations: 85.42 kB / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1271, allocations: 330.8 kB / 365.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.1272, allocations: 55.97 kB / 365.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.1274, allocations: 73.67 kB / 365.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.1278, allocations: 339.3 kB / 365.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1278, allocations: 0 / 365.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005679/0.1284, allocations: 392.3 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.1285, allocations: 134.8 kB / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1285, allocations: 0 / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1285, allocations: 0 / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.195e-05/0.1285, allocations: 0 / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.1286, allocations: 4 kB / 366.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.1287, allocations: 11.98 kB / 366.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.279e-05/0.1288, allocations: 55.94 kB / 366.3 MB, free: 4.797 MB / 302.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.000432/0.1292, allocations: 370.6 kB / 366.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.638e-05/0.1293, allocations: 39.62 kB / 366.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.1295, allocations: 63.16 kB / 366.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1295, allocations: 4 kB / 366.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1295, allocations: 3.938 kB / 366.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1295, allocations: 3.984 kB / 366.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.1305, allocations: 0.8249 MB / 367.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1305, allocations: 0 / 367.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-06/0.1305, allocations: 0 / 367.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1306, allocations: 0 / 367.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.1306, allocations: 12 kB / 367.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.1306, allocations: 4.188 kB / 367.6 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1306, allocations: 11.88 kB / 367.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.1313, allocations: 0.5405 MB / 368.2 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003324/0.1316, allocations: 240.4 kB / 368.4 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.071e-05/0.1317, allocations: 12 kB / 368.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.1319, allocations: 15.97 kB / 368.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.132, allocations: 31.91 kB / 368.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.837e-05/0.1321, allocations: 59.94 kB / 368.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004762/0.1325, allocations: 386.9 kB / 368.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1326, allocations: 0 / 368.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003085/0.1329, allocations: 51.92 kB / 368.9 MB, free: 1.973 MB / 302.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.001006/0.1339, allocations: 1.082 MB / 370 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000576/0.1345, allocations: 445.5 kB / 370.5 MB, free: 364 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1345, allocations: 0 / 370.5 MB, free: 364 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1675/0.302, allocations: 375.4 kB / 370.8 MB, free: 20.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007808/0.3028, allocations: 117.9 kB / 370.9 MB, free: 20.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.3061, allocations: 2.745 MB / 373.7 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.3064, allocations: 0.7993 MB / 374.5 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.266e-05/0.3065, allocations: 9.547 kB / 374.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.3065, allocations: 25.94 kB / 374.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3065, allocations: 1.312 kB / 374.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.3292, allocations: 6.008 MB / 380.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.055, allocations: 4.781 kB / 380.5 MB, free: 17.38 MB / 302.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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.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_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches