Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001257/0.001257, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.001116/0.001116, allocations: 158.3 kB / 25.45 MB, free: 8.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.873/0.873, allocations: 158.6 MB / 187.2 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.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_3.2.3_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 299.7 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.294e-05/3.498e-05, allocations: 2.281 kB / 299.7 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002669/0.002704, allocations: 1.701 MB / 301.4 MB, free: 5.199 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.004286, allocations: 0.9481 MB / 302.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.138e-05/0.004377, allocations: 4 kB / 302.4 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.004523, allocations: 19.73 kB / 302.4 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.826e-05/0.004602, allocations: 43.64 kB / 302.4 MB, free: 4.176 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.004969, allocations: 103.8 kB / 302.5 MB, free: 4.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.005251, allocations: 295.3 kB / 302.8 MB, free: 3.785 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.005382, allocations: 33.8 kB / 302.8 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005623/0.005945, allocations: 0.7955 MB / 303.6 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.006092, allocations: 135.6 kB / 303.8 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.006138, allocations: 20 kB / 303.8 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.88e-05/0.006177, allocations: 20 kB / 303.8 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.00628, allocations: 143.4 kB / 304 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.006394, allocations: 115.5 kB / 304.1 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005084/0.006902, allocations: 0.7592 MB / 304.8 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.006905, allocations: 0 / 304.8 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.006906, allocations: 4 kB / 304.8 MB, free: 1.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.006916, allocations: 0 / 304.8 MB, free: 1.766 MB / 282.7 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.0009661/0.007882, allocations: 1.113 MB / 305.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.007919, allocations: 15.98 kB / 306 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.554e-05/0.008005, allocations: 80.41 kB / 306 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.00829, allocations: 334.3 kB / 306.4 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.008315, allocations: 16.56 kB / 306.4 MB, free: 112 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.008345, allocations: 20.38 kB / 306.4 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004423/0.008787, allocations: 492.6 kB / 306.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.008797, allocations: 0 / 306.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.008821, allocations: 8 kB / 306.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.008826, allocations: 4 kB / 306.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.009076, allocations: 377.8 kB / 307.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007087/0.009785, allocations: 0.6331 MB / 307.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.01009, allocations: 392.1 kB / 308.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002288/0.01031, allocations: 370.4 kB / 308.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.01033, allocations: 4 kB / 308.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004718/0.0108, allocations: 0.6206 MB / 309.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.0108, allocations: 0 / 309.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001056/0.01186, allocations: 1.416 MB / 310.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.01196, allocations: 281 kB / 311 MB, free: 10.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007773/0.01274, allocations: 0.953 MB / 311.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.01277, allocations: 41.64 kB / 311.9 MB, free: 9.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.032e-05/0.01284, allocations: 130.1 kB / 312.1 MB, free: 9.848 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.01289, allocations: 71.47 kB / 312.1 MB, free: 9.777 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.01302, allocations: 157.3 kB / 312.3 MB, free: 9.617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.01311, allocations: 338.8 kB / 312.6 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.01334, allocations: 361.8 kB / 313 MB, free: 8.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.01357, allocations: 405.6 kB / 313.4 MB, free: 8.418 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004213/0.01399, allocations: 0.7301 MB / 314.1 MB, free: 7.574 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.01399, allocations: 0 / 314.1 MB, free: 7.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007044/0.0147, allocations: 1.004 MB / 315.1 MB, free: 6.465 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.01481, allocations: 253.5 kB / 315.4 MB, free: 6.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.01482, allocations: 7.984 kB / 315.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.01483, allocations: 0 / 315.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.813e-05/0.01486, allocations: 7.938 kB / 315.4 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.01487, allocations: 4.094 kB / 315.4 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.01502, allocations: 31.88 kB / 315.4 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/0.0151, allocations: 112.1 kB / 315.5 MB, free: 6.008 MB / 298.7 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.0004094/0.0155, allocations: 0.5968 MB / 316.1 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.01557, allocations: 79.53 kB / 316.2 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001379/0.01571, allocations: 134.8 kB / 316.3 MB, free: 5.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.01571, allocations: 4 kB / 316.3 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.01572, allocations: 0 / 316.3 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.01572, allocations: 0 / 316.3 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.01689, allocations: 1.575 MB / 317.9 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.01689, allocations: 3.938 kB / 317.9 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.265e-05/0.01691, allocations: 7.938 kB / 317.9 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01691, allocations: 0 / 317.9 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.01694, allocations: 39.97 kB / 318 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.01694, allocations: 0 / 318 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.01695, allocations: 7.922 kB / 318 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008168/0.01776, allocations: 1.225 MB / 319.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004622/0.01823, allocations: 416.8 kB / 319.6 MB, free: 1.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.398e-05/0.01829, allocations: 27.98 kB / 319.6 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.01842, allocations: 27.98 kB / 319.6 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.01853, allocations: 51.94 kB / 319.7 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-05/0.0186, allocations: 115.9 kB / 319.8 MB, free: 1.391 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005614/0.01917, allocations: 0.6938 MB / 320.5 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.01917, allocations: 0 / 320.5 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002592/0.01943, allocations: 88 kB / 320.6 MB, free: 0.6133 MB / 298.7 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.0001512/0.01958, allocations: 139.2 kB / 320.7 MB, free: 480 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008915/0.02047, allocations: 1.256 MB / 322 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.02047, allocations: 4.062 kB / 322 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004282/0.0209, allocations: 0.8444 MB / 322.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006262/0.02152, allocations: 270.6 kB / 323.1 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.02298, allocations: 1.591 MB / 324.7 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.02326, allocations: 352.9 kB / 325 MB, free: 11.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.689e-05/0.02335, allocations: 56.41 kB / 325.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.02335, allocations: 0 / 325.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of Templates: time 0.005186/0.02853, allocations: 5.353 MB / 330.4 MB, free: 6.262 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.202107734978199]