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.001344/0.001344, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001328/0.001328, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.00165/0.00165, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.1, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002699/0.1028, allocations: 1.513 MB / 376.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.1047, allocations: 0.898 MB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.246e-05/0.1048, allocations: 0 / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.031e-05/0.1049, allocations: 3.938 kB / 377.1 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.424e-05/0.105, allocations: 23.84 kB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002618/0.1053, allocations: 43.89 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.1055, allocations: 151.7 kB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1056, allocations: 16.22 kB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006328/0.1063, allocations: 0.5615 MB / 377.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.1064, allocations: 67.7 kB / 377.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.891e-05/0.1065, allocations: 12 kB / 377.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.868e-05/0.1065, allocations: 11.94 kB / 377.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.1067, allocations: 67.7 kB / 378 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.1068, allocations: 111.2 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.1073, allocations: 374.5 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1073, allocations: 0 / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1073, allocations: 0 / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1073, allocations: 0 / 378.5 MB, free: 1.207 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.0009237/0.1082, allocations: 0.7383 MB / 379.2 MB, free: 404 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1083, allocations: 8.031 kB / 379.2 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.57e-05/0.1084, allocations: 38.73 kB / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.828e-05/0.1084, allocations: 40.7 kB / 379.3 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2116/0.32, allocations: 271 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.187e-05/0.3201, allocations: 8.938 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.617e-05/0.3202, allocations: 11.12 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000408/0.3206, allocations: 129.6 kB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3206, allocations: 0 / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.3207, allocations: 10.69 kB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.3207, allocations: 1.375 kB / 379.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.3209, allocations: 56.23 kB / 379.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008608/0.3217, allocations: 468.1 kB / 380.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.3219, allocations: 96.42 kB / 380.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.3221, allocations: 84.34 kB / 380.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.3221, allocations: 1.062 kB / 380.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004493/0.3226, allocations: 211.2 kB / 380.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.854e-06/0.3226, allocations: 0 / 380.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008534/0.3235, allocations: 481.1 kB / 381.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.3235, allocations: 165.5 kB / 381.2 MB, free: 10 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007207/0.3243, allocations: 0.5139 MB / 381.8 MB, free: 9.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.3243, allocations: 33 kB / 381.8 MB, free: 9.766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.189e-05/0.3244, allocations: 97.03 kB / 381.9 MB, free: 9.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.3244, allocations: 37.5 kB / 381.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.3246, allocations: 88.69 kB / 382 MB, free: 9.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.3247, allocations: 320.9 kB / 382.3 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.3248, allocations: 62.47 kB / 382.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.325, allocations: 72.58 kB / 382.5 MB, free: 9.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003524/0.3253, allocations: 349.7 kB / 382.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3254, allocations: 0 / 382.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006073/0.326, allocations: 392.1 kB / 383.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.289e-05/0.326, allocations: 124.9 kB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3261, allocations: 4.297 kB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.3261, allocations: 1.188 kB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.599e-05/0.3261, allocations: 4.906 kB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3261, allocations: 5.766 kB / 383.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.3263, allocations: 11.56 kB / 383.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.941e-05/0.3264, allocations: 57.2 kB / 383.4 MB, free: 8.75 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.0003338/0.3267, allocations: 362.3 kB / 383.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.206e-05/0.3268, allocations: 42.8 kB / 383.8 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.3269, allocations: 65.53 kB / 383.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3269, allocations: 4.188 kB / 383.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3269, allocations: 0 / 383.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3269, allocations: 0.7969 kB / 383.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009946/0.3279, allocations: 0.8286 MB / 384.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3279, allocations: 0.875 kB / 384.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-06/0.3279, allocations: 1.438 kB / 384.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.3279, allocations: 5.062 kB / 384.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.41e-05/0.328, allocations: 19.61 kB / 384.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.328, allocations: 1.094 kB / 384.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.328, allocations: 1.688 kB / 384.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006703/0.3287, allocations: 0.5335 MB / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/0.329, allocations: 248.8 kB / 385.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.329, allocations: 9.562 kB / 385.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.3292, allocations: 11.78 kB / 385.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3293, allocations: 30.27 kB / 385.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.424e-05/0.3294, allocations: 57.41 kB / 385.6 MB, free: 7.547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005377/0.33, allocations: 388.2 kB / 386 MB, free: 7.402 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.33, allocations: 0 / 386 MB, free: 7.402 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.3303, allocations: 44.53 kB / 386 MB, free: 7.402 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.001005/0.3313, allocations: 1.1 MB / 387.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006006/0.3319, allocations: 437.5 kB / 387.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3319, allocations: 0 / 387.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003079/0.3322, allocations: 377.7 kB / 387.9 MB, free: 5.855 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006493/0.3329, allocations: 123.4 kB / 388 MB, free: 5.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003374/0.3363, allocations: 2.768 MB / 390.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3366, allocations: 0.8058 MB / 391.6 MB, free: 3.168 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.808e-05/0.3367, allocations: 9.891 kB / 391.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.079e-05/0.3368, allocations: 26.91 kB / 391.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3368, allocations: 0 / 391.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0321/0.3689, allocations: 6.05 MB / 397.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.32, allocations: 5.281 kB / 397.7 MB, free: 2.098 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