Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 114 kB / 18.46 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 208.3 kB / 21.41 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 55.91 kB / 374.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1125, allocations: 53.33 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003349/0.1159, allocations: 1.835 MB / 429.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.1183, allocations: 0.9821 MB / 430.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.115e-05/0.1183, allocations: 4 kB / 430.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1185, allocations: 19.78 kB / 430.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.1186, allocations: 43.66 kB / 430.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.119, allocations: 99.8 kB / 430.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.1193, allocations: 291.4 kB / 430.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.1195, allocations: 29.67 kB / 430.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009927/0.1205, allocations: 0.7563 MB / 431.5 MB, free: 212 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003409/0.1208, allocations: 155.4 kB / 431.7 MB, free: 56 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.329e-05/0.1209, allocations: 20 kB / 431.7 MB, free: 36 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.122e-05/0.1209, allocations: 24 kB / 431.7 MB, free: 12 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2073/0.3282, allocations: 136.1 kB / 431.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002926/0.3285, allocations: 237.2 kB / 432.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007625/0.3293, allocations: 0.755 MB / 432.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3293, allocations: 3.938 kB / 432.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3293, allocations: 3.281 kB / 432.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.3293, allocations: 2.062 kB / 432.9 MB, free: 8.652 MB / 350.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.001078/0.3304, allocations: 1.185 MB / 434 MB, free: 7.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3304, allocations: 10.5 kB / 434.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3305, allocations: 77.81 kB / 434.1 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.3309, allocations: 406.5 kB / 434.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.3309, allocations: 14.78 kB / 434.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.408e-05/0.331, allocations: 19.88 kB / 434.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.3315, allocations: 250.2 kB / 434.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.3315, allocations: 1.75 kB / 434.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.3315, allocations: 9.5 kB / 434.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3315, allocations: 1.531 kB / 434.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003115/0.3318, allocations: 144.7 kB / 435 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.3329, allocations: 0.7297 MB / 435.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.3332, allocations: 153.5 kB / 435.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002705/0.3335, allocations: 132.2 kB / 436 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.3335, allocations: 1.906 kB / 436 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005787/0.3341, allocations: 392 kB / 436.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.864e-06/0.3341, allocations: 1.312 kB / 436.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001482/0.3356, allocations: 0.9326 MB / 437.3 MB, free: 6.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.3357, allocations: 283.2 kB / 437.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.3369, allocations: 0.951 MB / 438.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.3369, allocations: 39.42 kB / 438.6 MB, free: 5.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.337, allocations: 131.4 kB / 438.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.376e-05/0.3371, allocations: 68.44 kB / 438.7 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/0.3373, allocations: 166.1 kB / 438.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.887e-05/0.3374, allocations: 334 kB / 439.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.3376, allocations: 124.8 kB / 439.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.3379, allocations: 163.7 kB / 439.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.3385, allocations: 0.6985 MB / 440.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3385, allocations: 1.094 kB / 440.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001082/0.3396, allocations: 0.7607 MB / 441 MB, free: 4.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.3397, allocations: 247.4 kB / 441.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3397, allocations: 1.375 kB / 441.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.3397, allocations: 5.406 kB / 441.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.623e-05/0.3398, allocations: 6.969 kB / 441.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.3398, allocations: 5.594 kB / 441.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/0.34, allocations: 30.12 kB / 441.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.3402, allocations: 103.9 kB / 441.4 MB, free: 4.113 MB / 350.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.0006249/0.3408, allocations: 0.6116 MB / 442 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.3409, allocations: 80.11 kB / 442.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002043/0.3411, allocations: 132.5 kB / 442.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3411, allocations: 2.594 kB / 442.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.3411, allocations: 3.562 kB / 442.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3411, allocations: 1.172 kB / 442.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.343, allocations: 1.426 MB / 443.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.343, allocations: 1.219 kB / 443.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.73e-05/0.343, allocations: 6.766 kB / 443.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.343, allocations: 1.875 kB / 443.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/0.3431, allocations: 31 kB / 443.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.3431, allocations: 7.25 kB / 443.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3431, allocations: 0 / 443.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.3443, allocations: 0.9721 MB / 444.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005633/0.3449, allocations: 417.1 kB / 445 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.345, allocations: 23.91 kB / 445.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3452, allocations: 23.91 kB / 445.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.3454, allocations: 54.59 kB / 445.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.3455, allocations: 117.9 kB / 445.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009099/0.3464, allocations: 0.6916 MB / 446 MB, free: 1.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3464, allocations: 1.406 kB / 446 MB, free: 1.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004606/0.3469, allocations: 92.59 kB / 446 MB, free: 1.406 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.0001842/0.3471, allocations: 150.5 kB / 446.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008418/0.3479, allocations: 0.7643 MB / 447 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3479, allocations: 0 / 447 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.3484, allocations: 0.6066 MB / 447.6 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.3495, allocations: 276.7 kB / 447.8 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.3519, allocations: 1.356 MB / 449.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/0.3527, allocations: 0.9412 MB / 450.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.3529, allocations: 54.27 kB / 450.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3529, allocations: 5.125 kB / 450.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of Templates: time 0.01013/0.363, allocations: 5.385 MB / 455.6 MB, free: 13.52 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/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_4.1.0_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.375852831988595]