Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 68.08 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2621, allocations: 50.55 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002992/0.2651, allocations: 1.816 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.2672, allocations: 0.9859 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.396e-05/0.2672, allocations: 0 / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.2674, allocations: 23.78 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.046e-05/0.2675, allocations: 35.66 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.2678, allocations: 95.81 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003994/0.2682, allocations: 327.3 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.2684, allocations: 45.66 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007529/0.2691, allocations: 0.7174 MB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.2693, allocations: 147.4 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.2694, allocations: 20 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.465e-05/0.2695, allocations: 24 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.2696, allocations: 139.4 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.2698, allocations: 234.3 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006963/0.2705, allocations: 0.7575 MB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2705, allocations: 0 / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2706, allocations: 4 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.2706, allocations: 0 / 414.1 MB, free: 12.15 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001274/0.2718, allocations: 1.196 MB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2719, allocations: 8.031 kB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.418e-05/0.272, allocations: 50.73 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.2721, allocations: 84.47 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.2725, allocations: 404.9 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.2726, allocations: 8.562 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.4e-05/0.2726, allocations: 24.12 kB / 415.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.2732, allocations: 255.4 kB / 416.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2732, allocations: 0 / 416.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.2732, allocations: 8 kB / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.2732, allocations: 4 kB / 416.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.2735, allocations: 132.2 kB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.2747, allocations: 0.7272 MB / 417 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.2751, allocations: 206.4 kB / 417.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003029/0.2754, allocations: 176.8 kB / 417.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.2754, allocations: 0 / 417.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006281/0.2761, allocations: 385.9 kB / 417.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.2761, allocations: 0 / 417.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001495/0.2776, allocations: 0.936 MB / 418.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002025/0.2778, allocations: 285 kB / 419 MB, free: 6.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.2791, allocations: 0.9529 MB / 419.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.097e-05/0.2792, allocations: 41.69 kB / 420 MB, free: 5.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.818e-05/0.2793, allocations: 126.1 kB / 420.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.97e-05/0.2794, allocations: 71.47 kB / 420.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.2796, allocations: 169.3 kB / 420.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2797, allocations: 330.8 kB / 420.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.28, allocations: 128.2 kB / 420.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.2803, allocations: 169.4 kB / 420.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.281, allocations: 0.6989 MB / 421.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.281, allocations: 0 / 421.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00106/0.2821, allocations: 0.7567 MB / 422.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001675/0.2823, allocations: 249.6 kB / 422.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2823, allocations: 0 / 422.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.2823, allocations: 4 kB / 422.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.2824, allocations: 7.984 kB / 422.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2824, allocations: 4 kB / 422.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.2826, allocations: 31.88 kB / 422.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.2828, allocations: 104.2 kB / 422.8 MB, free: 2.848 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0006634/0.2834, allocations: 0.6201 MB / 423.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.863e-05/0.2835, allocations: 79.53 kB / 423.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001979/0.2837, allocations: 126.9 kB / 423.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2837, allocations: 0 / 423.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2838, allocations: 0 / 423.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2838, allocations: 3.984 kB / 423.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.2856, allocations: 1.425 MB / 425 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2856, allocations: 0 / 425 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.811e-05/0.2856, allocations: 4 kB / 425 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2856, allocations: 0 / 425 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.2857, allocations: 35.97 kB / 425.1 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2857, allocations: 0 / 425.1 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2857, allocations: 0 / 425.1 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.287, allocations: 0.9691 MB / 426 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005786/0.2875, allocations: 416.1 kB / 426.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.78e-05/0.2877, allocations: 24 kB / 426.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.2879, allocations: 23.98 kB / 426.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.288, allocations: 59.88 kB / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.2882, allocations: 111.9 kB / 426.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009429/0.2891, allocations: 0.6976 MB / 427.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2891, allocations: 3.938 kB / 427.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.2895, allocations: 92 kB / 427.4 MB, free: 13.92 MB / 350.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.001699/0.2912, allocations: 1.553 MB / 429 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.2923, allocations: 0.8818 MB / 429.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2923, allocations: 0 / 429.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006979/0.293, allocations: 0.7569 MB / 430.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009974/0.294, allocations: 273.9 kB / 430.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006363/0.3004, allocations: 4.629 MB / 435.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006956/0.3011, allocations: 0.9481 MB / 436.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002375/0.3014, allocations: 93.33 kB / 436.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.3015, allocations: 91.34 kB / 436.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3015, allocations: 0 / 436.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.3379, allocations: 11.71 MB / 448.4 MB, free: 8.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.526, allocations: 4.938 kB / 448.4 MB, free: 8.645 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_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_WiredX.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches