Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 111.9 kB / 17.28 MB, free: 6.199 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.001272/0.001272, allocations: 193.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001376, allocations: 48.14 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1343, allocations: 46.63 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.00332/0.1377, allocations: 1.558 MB / 328.3 MB, free: 3.215 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.1397, allocations: 0.8906 MB / 329.2 MB, free: 2.316 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.928e-05/0.1397, allocations: 0 / 329.2 MB, free: 2.316 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1399, allocations: 7.922 kB / 329.2 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.977e-05/0.14, allocations: 11.92 kB / 329.2 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.1403, allocations: 43.91 kB / 329.3 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.1406, allocations: 143.8 kB / 329.4 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.1407, allocations: 20.2 kB / 329.4 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006293/0.1414, allocations: 0.5615 MB / 330 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.1415, allocations: 75.64 kB / 330.1 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.267e-05/0.1416, allocations: 8 kB / 330.1 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.405e-05/0.1416, allocations: 12 kB / 330.1 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.1417, allocations: 59.77 kB / 330.2 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.1419, allocations: 115.1 kB / 330.3 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1423, allocations: 370.7 kB / 330.6 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1423, allocations: 0 / 330.6 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1423, allocations: 0 / 330.6 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.1423, allocations: 0 / 330.6 MB, free: 0.8984 MB / 270.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.001059/0.1434, allocations: 0.7307 MB / 331.4 MB, free: 96 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1434, allocations: 8.031 kB / 331.4 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.298e-05/0.1435, allocations: 36.56 kB / 331.4 MB, free: 52 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.144, allocations: 274.3 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.144, allocations: 12.38 kB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.144, allocations: 8.375 kB / 331.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.1444, allocations: 133.9 kB / 331.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1444, allocations: 0 / 331.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.1444, allocations: 4 kB / 331.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1444, allocations: 0 / 331.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.1446, allocations: 59.95 kB / 331.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006992/0.1453, allocations: 468.4 kB / 332.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.1455, allocations: 98.55 kB / 332.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1456, allocations: 84.88 kB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.1457, allocations: 0 / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004241/0.1461, allocations: 206.8 kB / 332.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 5.56e-06/0.1461, allocations: 3.984 kB / 332.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009361/0.147, allocations: 479.9 kB / 333.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.1472, allocations: 174.2 kB / 333.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007179/0.1479, allocations: 0.5091 MB / 333.9 MB, free: 13.37 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.148, allocations: 33.7 kB / 333.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/0.148, allocations: 101 kB / 334 MB, free: 13.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.1481, allocations: 31.58 kB / 334 MB, free: 13.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.1482, allocations: 85.41 kB / 334.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1484, allocations: 326.8 kB / 334.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.1485, allocations: 59.97 kB / 334.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1487, allocations: 73.67 kB / 334.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003352/0.149, allocations: 343.7 kB / 334.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.149, allocations: 0 / 334.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005476/0.1496, allocations: 388.4 kB / 335.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.1497, allocations: 134.7 kB / 335.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.1497, allocations: 0 / 335.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1497, allocations: 32 / 335.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.649e-05/0.1498, allocations: 4 kB / 335.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1498, allocations: 4 kB / 335.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.1499, allocations: 15.89 kB / 335.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.081e-05/0.15, allocations: 55.94 kB / 335.5 MB, free: 11.61 MB / 286.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.0004222/0.1505, allocations: 366.7 kB / 335.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.1505, allocations: 35.62 kB / 335.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1506, allocations: 67.14 kB / 336 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1507, allocations: 0 / 336 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.261e-05/0.1507, allocations: 12.11 kB / 336 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.1507, allocations: 3.938 kB / 336 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.1517, allocations: 0.8095 MB / 336.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1517, allocations: 0 / 336.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.941e-06/0.1518, allocations: 4 kB / 336.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.716e-06/0.1518, allocations: 0 / 336.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.1518, allocations: 15.94 kB / 336.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1518, allocations: 0 / 336.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1518, allocations: 3.938 kB / 336.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006681/0.1525, allocations: 0.5369 MB / 337.3 MB, free: 9.602 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.1528, allocations: 244.5 kB / 337.6 MB, free: 9.344 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.96e-05/0.1529, allocations: 12 kB / 337.6 MB, free: 9.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.153, allocations: 15.92 kB / 337.6 MB, free: 9.316 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.1531, allocations: 31.91 kB / 337.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.72e-05/0.1532, allocations: 55.94 kB / 337.7 MB, free: 9.23 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004941/0.1537, allocations: 386.9 kB / 338.1 MB, free: 8.855 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1537, allocations: 4 kB / 338.1 MB, free: 8.852 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.154, allocations: 47.91 kB / 338.1 MB, free: 8.805 MB / 286.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.0002443/0.1543, allocations: 115 kB / 338.2 MB, free: 8.684 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005861/0.1548, allocations: 441.5 kB / 338.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1549, allocations: 0 / 338.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003323/0.1552, allocations: 377.6 kB / 339 MB, free: 7.785 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.1558, allocations: 116.8 kB / 339.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.157, allocations: 0.7476 MB / 339.9 MB, free: 6.898 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006164/0.1577, allocations: 0.8176 MB / 340.7 MB, free: 6.055 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.415e-05/0.1577, allocations: 8.656 kB / 340.7 MB, free: 6.047 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.1578, allocations: 11.44 kB / 340.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1578, allocations: 0 / 340.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of Templates: time 0.007844/0.1656, allocations: 4.554 MB / 345.3 MB, free: 1.387 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches