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.00136/0.00136, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001019/0.001019, allocations: 141.3 kB / 24.89 MB, free: 9.211 MB / 18.57 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 0.9152/0.9152, allocations: 173.3 MB / 201.5 MB, free: 9.219 MB / 186.7 MB " [Timeout remaining time 179] 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 1.243e-06/1.243e-06, allocations: 0 / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.575e-05/1.699e-05, allocations: 6.25 kB / 268.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.005489/0.005506, allocations: 1.765 MB / 270.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.007176, allocations: 0.9352 MB / 271.2 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.299e-05/0.007239, allocations: 4 kB / 271.2 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.007368, allocations: 27.72 kB / 271.2 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003095/0.01046, allocations: 39.66 kB / 271.2 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.01078, allocations: 107.7 kB / 271.3 MB, free: 3.316 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.01108, allocations: 291.3 kB / 271.6 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.758e-05/0.01118, allocations: 46.3 kB / 271.7 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006735/0.01186, allocations: 0.7253 MB / 272.4 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.01202, allocations: 127.6 kB / 272.5 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.573e-05/0.01207, allocations: 20 kB / 272.5 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.058e-05/0.01211, allocations: 24 kB / 272.6 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.01224, allocations: 147.4 kB / 272.7 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.01236, allocations: 115.5 kB / 272.8 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004683/0.01283, allocations: 0.5643 MB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.01283, allocations: 8 kB / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.01283, allocations: 0 / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.01284, allocations: 0 / 273.4 MB, free: 1.258 MB / 250.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.003858/0.0167, allocations: 1.053 MB / 274.4 MB, free: 132 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.01673, allocations: 8.922 kB / 274.5 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.889e-05/0.01683, allocations: 68.81 kB / 274.5 MB, free: 56 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.01713, allocations: 338.3 kB / 274.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.01715, allocations: 12.56 kB / 274.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.0172, allocations: 20.38 kB / 274.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.0176, allocations: 437.2 kB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.01761, allocations: 0 / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.01764, allocations: 12 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.01765, allocations: 4 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.01785, allocations: 304.8 kB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006504/0.0185, allocations: 411.6 kB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.01875, allocations: 328.1 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.01894, allocations: 310.4 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.01896, allocations: 4 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005924/0.01955, allocations: 0.5658 MB / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.352e-06/0.01955, allocations: 0 / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.00073/0.02028, allocations: 1.018 MB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.02038, allocations: 285 kB / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/0.02097, allocations: 0.6245 MB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.021, allocations: 37.7 kB / 279.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.248e-05/0.02104, allocations: 106 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.02109, allocations: 67.56 kB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.0212, allocations: 141.3 kB / 279.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/0.02128, allocations: 338.8 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.02142, allocations: 293.8 kB / 280.1 MB, free: 9.824 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.02158, allocations: 337.5 kB / 280.4 MB, free: 9.434 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.02187, allocations: 0.6352 MB / 281.1 MB, free: 8.684 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.02187, allocations: 0 / 281.1 MB, free: 8.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003639/0.02224, allocations: 0.6763 MB / 281.7 MB, free: 7.902 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.483e-05/0.02232, allocations: 249.5 kB / 282 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.02233, allocations: 0 / 282 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.02234, allocations: 11.88 kB / 282 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.002e-05/0.02236, allocations: 8.094 kB / 282 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.02237, allocations: 4 kB / 282 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.02248, allocations: 31.88 kB / 282 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.13e-05/0.02256, allocations: 96.14 kB / 282.1 MB, free: 7.461 MB / 266.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.000378/0.02293, allocations: 0.5721 MB / 282.7 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.023, allocations: 67.94 kB / 282.8 MB, free: 6.762 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.02313, allocations: 110.9 kB / 282.9 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.02314, allocations: 3.938 kB / 282.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.02314, allocations: 0 / 282.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.02314, allocations: 4 kB / 282.9 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009027/0.02404, allocations: 1.048 MB / 283.9 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.02404, allocations: 0 / 283.9 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.071e-05/0.02405, allocations: 11.98 kB / 284 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.02406, allocations: 0 / 284 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.02408, allocations: 19.98 kB / 284 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.02408, allocations: 3.938 kB / 284 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.02408, allocations: 0 / 284 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004317/0.02452, allocations: 0.8619 MB / 284.8 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003305/0.02485, allocations: 269.1 kB / 285.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.02491, allocations: 24 kB / 285.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.02501, allocations: 27.92 kB / 285.2 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.991e-05/0.02509, allocations: 39.94 kB / 285.2 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-05/0.02517, allocations: 111.8 kB / 285.3 MB, free: 3.988 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002695/0.02544, allocations: 308.3 kB / 285.6 MB, free: 3.688 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02544, allocations: 0 / 285.6 MB, free: 3.688 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002076/0.02564, allocations: 95.95 kB / 285.7 MB, free: 3.594 MB / 266.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.0001088/0.02575, allocations: 120.4 kB / 285.8 MB, free: 3.469 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005462/0.0263, allocations: 1.128 MB / 286.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.02631, allocations: 8 kB / 286.9 MB, free: 2.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.02663, allocations: 0.7934 MB / 287.7 MB, free: 1.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.02714, allocations: 288.9 kB / 288 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.02836, allocations: 1.422 MB / 289.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.02847, allocations: 152.2 kB / 289.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.02859, allocations: 85.28 kB / 289.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004327/0.02902, allocations: 285.1 kB / 290 MB, free: 14.89 MB / 282.7 MB Notification: Performance of SimCode: time 7.61e-07/0.02902, allocations: 0 / 290 MB, free: 14.89 MB / 282.7 MB Notification: Performance of Templates: time 0.009974/0.03899, allocations: 9.414 MB / 299.4 MB, free: 5.59 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.603243081830442]