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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_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.001168/0.001174, allocations: 109.4 kB / 17.73 MB, free: 5.32 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.001207/0.001207, allocations: 196.2 kB / 18.67 MB, free: 4.387 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.387/1.387, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.00133/0.001331, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09324, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002813/0.09609, allocations: 1.509 MB / 376.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.09803, allocations: 0.8942 MB / 377 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.473e-05/0.09813, allocations: 3.938 kB / 377 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.235e-05/0.09829, allocations: 7.922 kB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.936e-05/0.09839, allocations: 23.84 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002626/0.09867, allocations: 39.91 kB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002164/0.09889, allocations: 155.7 kB / 377.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.09901, allocations: 16.22 kB / 377.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006307/0.09965, allocations: 0.5693 MB / 377.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.09983, allocations: 75.64 kB / 377.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-05/0.09988, allocations: 12 kB / 377.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.092e-05/0.09992, allocations: 8 kB / 377.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.918e-05/0.1, allocations: 63.77 kB / 378 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.1002, allocations: 123.1 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.1006, allocations: 362.5 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1007, allocations: 0 / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.898e-06/0.1007, allocations: 4 kB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.1007, allocations: 0 / 378.5 MB, free: 1.203 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.0009987/0.1017, allocations: 0.7344 MB / 379.2 MB, free: 404 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1017, allocations: 8.031 kB / 379.2 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.482e-05/0.1018, allocations: 42.73 kB / 379.3 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.1019, allocations: 40.7 kB / 379.3 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1779/0.2798, allocations: 277.6 kB / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.2799, allocations: 9.094 kB / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.2799, allocations: 8.25 kB / 379.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.2803, allocations: 129.5 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2803, allocations: 0 / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.2804, allocations: 6.328 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.2804, allocations: 1.312 kB / 379.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.2805, allocations: 60.16 kB / 379.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007629/0.2813, allocations: 458.1 kB / 380.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.2815, allocations: 98.61 kB / 380.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.2817, allocations: 84.77 kB / 380.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.2817, allocations: 1.375 kB / 380.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.282, allocations: 216 kB / 380.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.993e-06/0.282, allocations: 1.969 kB / 380.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007547/0.2828, allocations: 487.1 kB / 381.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.2828, allocations: 167.5 kB / 381.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007105/0.2836, allocations: 0.5124 MB / 381.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.2836, allocations: 29.83 kB / 381.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.003e-05/0.2837, allocations: 103.2 kB / 381.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/0.2837, allocations: 36.52 kB / 381.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.2839, allocations: 84.16 kB / 382 MB, free: 11.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.686e-05/0.2839, allocations: 322.2 kB / 382.3 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.2841, allocations: 59.25 kB / 382.4 MB, free: 11.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.2842, allocations: 72.44 kB / 382.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003556/0.2846, allocations: 344.7 kB / 382.8 MB, free: 11.19 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2846, allocations: 0 / 382.8 MB, free: 11.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005708/0.2852, allocations: 392.3 kB / 383.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.787e-05/0.2852, allocations: 133.2 kB / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2853, allocations: 0 / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.2853, allocations: 5.062 kB / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.213e-05/0.2853, allocations: 2.078 kB / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.2853, allocations: 0 / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.2855, allocations: 11.12 kB / 383.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/0.2855, allocations: 59 kB / 383.4 MB, free: 10.83 MB / 318.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.0003332/0.2859, allocations: 361.3 kB / 383.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.2859, allocations: 44.78 kB / 383.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.813e-05/0.286, allocations: 70.94 kB / 383.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2861, allocations: 0.9688 kB / 383.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2861, allocations: 1.531 kB / 383.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.2861, allocations: 0.8438 kB / 383.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009719/0.2871, allocations: 0.8222 MB / 384.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2871, allocations: 0.75 kB / 384.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-06/0.2871, allocations: 3.062 kB / 384.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.2871, allocations: 0 / 384.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.2871, allocations: 20.02 kB / 384.7 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2871, allocations: 1.219 kB / 384.7 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2871, allocations: 0.6562 kB / 384.7 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005888/0.2877, allocations: 0.5351 MB / 385.3 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.2881, allocations: 256.5 kB / 385.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.582e-05/0.2881, allocations: 11.22 kB / 385.5 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.2883, allocations: 10.06 kB / 385.5 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.2884, allocations: 27 kB / 385.5 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.908e-05/0.2885, allocations: 57.92 kB / 385.6 MB, free: 9.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004243/0.2889, allocations: 386.2 kB / 386 MB, free: 9.152 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2889, allocations: 0 / 386 MB, free: 9.152 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002904/0.2892, allocations: 42.64 kB / 386 MB, free: 9.152 MB / 318.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.0008531/0.2901, allocations: 1.101 MB / 387.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004964/0.2906, allocations: 442.8 kB / 387.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2906, allocations: 0 / 387.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002848/0.2909, allocations: 379 kB / 387.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006618/0.2915, allocations: 133.2 kB / 388.1 MB, free: 7.543 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003362/0.2949, allocations: 2.748 MB / 390.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.2953, allocations: 0.8069 MB / 391.6 MB, free: 4.887 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.568e-05/0.2954, allocations: 8.516 kB / 391.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.2955, allocations: 30.52 kB / 391.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2955, allocations: 0 / 391.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.3207, allocations: 6.044 MB / 397.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.575/8.896, allocations: 5.281 kB / 397.7 MB, free: 3.617 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches