Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Digital.Examples.WiredX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 47.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3642, allocations: 52.14 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003557/0.3678, allocations: 1.832 MB / 422.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.3699, allocations: 0.9472 MB / 423.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.751e-05/0.37, allocations: 4 kB / 423.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.3702, allocations: 27.72 kB / 423.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.3703, allocations: 47.64 kB / 423.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003914/0.3707, allocations: 99.7 kB / 423.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005017/0.3712, allocations: 291.4 kB / 424.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.3714, allocations: 41.59 kB / 424.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001074/0.3725, allocations: 0.7408 MB / 424.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.3727, allocations: 151.4 kB / 425 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.354e-05/0.3727, allocations: 24 kB / 425.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.266e-05/0.3728, allocations: 20 kB / 425.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.373, allocations: 139.4 kB / 425.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.3733, allocations: 246.2 kB / 425.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007955/0.3741, allocations: 0.7636 MB / 426.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3741, allocations: 0 / 426.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3741, allocations: 0 / 426.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.3741, allocations: 4 kB / 426.2 MB, free: 9.727 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.001444/0.3755, allocations: 1.184 MB / 427.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3756, allocations: 8.031 kB / 427.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.3757, allocations: 84.47 kB / 427.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006495/0.3764, allocations: 396.9 kB / 427.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.3764, allocations: 16.56 kB / 427.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.3764, allocations: 16.38 kB / 427.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000588/0.377, allocations: 250.2 kB / 428.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.377, allocations: 0 / 428.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.3771, allocations: 12 kB / 428.2 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.3771, allocations: 4 kB / 428.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.3774, allocations: 132.1 kB / 428.3 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.379, allocations: 0.7427 MB / 429 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004734/0.3795, allocations: 154.4 kB / 429.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.3798, allocations: 132.8 kB / 429.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.3798, allocations: 0 / 429.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006396/0.3804, allocations: 393.8 kB / 429.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.783e-06/0.3804, allocations: 0 / 429.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001875/0.3823, allocations: 0.9283 MB / 430.6 MB, free: 5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003309/0.3827, allocations: 285 kB / 430.9 MB, free: 4.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.3843, allocations: 0.9452 MB / 431.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.3844, allocations: 41.62 kB / 431.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3845, allocations: 130 kB / 432 MB, free: 3.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.3847, allocations: 67.52 kB / 432.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003259/0.385, allocations: 169.3 kB / 432.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003117/0.3853, allocations: 334.8 kB / 432.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.3856, allocations: 124.2 kB / 432.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.386, allocations: 164.7 kB / 432.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007671/0.3868, allocations: 0.7068 MB / 433.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.3868, allocations: 7.875 kB / 433.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0012/0.388, allocations: 0.7528 MB / 434.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003912/0.3884, allocations: 245.6 kB / 434.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3884, allocations: 0 / 434.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.3884, allocations: 0 / 434.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.197e-05/0.3884, allocations: 15.92 kB / 434.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3885, allocations: 0 / 434.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.3887, allocations: 32.08 kB / 434.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.3889, allocations: 104.2 kB / 434.7 MB, free: 0.5898 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.001008/0.3899, allocations: 0.62 MB / 435.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.39, allocations: 79.53 kB / 435.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/0.3903, allocations: 126.9 kB / 435.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.3903, allocations: 4 kB / 435.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3903, allocations: 0 / 435.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3903, allocations: 0 / 435.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.3924, allocations: 1.429 MB / 437 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3924, allocations: 7.938 kB / 437 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.89e-05/0.3925, allocations: 8 kB / 437 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.3925, allocations: 0 / 437 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-05/0.3925, allocations: 31.97 kB / 437 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3925, allocations: 0 / 437 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3925, allocations: 0 / 437 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.394, allocations: 0.9769 MB / 438 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006624/0.3947, allocations: 420.2 kB / 438.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3948, allocations: 20 kB / 438.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.395, allocations: 19.98 kB / 438.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.3951, allocations: 55.94 kB / 438.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.3953, allocations: 107.9 kB / 438.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009961/0.3963, allocations: 0.6899 MB / 439.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3963, allocations: 0 / 439.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004033/0.3967, allocations: 103.8 kB / 439.4 MB, free: 11.66 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.0002722/0.3969, allocations: 151.2 kB / 439.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.398, allocations: 0.7646 MB / 440.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.398, allocations: 4 kB / 440.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007184/0.3987, allocations: 0.5996 MB / 440.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.3998, allocations: 275.1 kB / 441.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.4019, allocations: 1.292 MB / 442.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007386/0.4026, allocations: 0.9479 MB / 443.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/0.4029, allocations: 93.33 kB / 443.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.46e-05/0.403, allocations: 47.31 kB / 443.6 MB, free: 7.25 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.403, allocations: 7.938 kB / 443.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of Templates: time 0.01724/0.4202, allocations: 9.609 MB / 453.2 MB, free: 13.7 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.80096875410527]