Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002599/0.002599, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.437/3.437, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001855/0.001855, allocations: 101.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006639/0.0006644, allocations: 11.98 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5478/0.5485, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003614/0.5522, allocations: 1.451 MB / 376 MB, free: 44.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.557, allocations: 0.9428 MB / 376.9 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.5573, allocations: 8.812 kB / 376.9 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.5575, allocations: 17.22 kB / 376.9 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.5578, allocations: 32.16 kB / 377 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006719/0.5585, allocations: 70.33 kB / 377 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005521/0.5591, allocations: 152.4 kB / 377.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.5593, allocations: 41.28 kB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001559/0.5609, allocations: 0.5276 MB / 377.8 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005083/0.5615, allocations: 166 kB / 377.9 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001758/0.5617, allocations: 7.594 kB / 377.9 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.5619, allocations: 7.562 kB / 377.9 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003143/0.5622, allocations: 134.8 kB / 378.1 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.5625, allocations: 116.8 kB / 378.2 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.5637, allocations: 0.5948 MB / 378.8 MB, free: 42.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.5637, allocations: 1.094 kB / 378.8 MB, free: 42.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.978e-06/0.5638, allocations: 0 / 378.8 MB, free: 42.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.582e-05/0.5638, allocations: 0 / 378.8 MB, free: 42.47 MB / 298.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.002497/0.5663, allocations: 1.039 MB / 379.8 MB, free: 41.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.467e-05/0.5664, allocations: 10 kB / 379.8 MB, free: 41.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000434/0.5669, allocations: 76.5 kB / 379.9 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.568, allocations: 363.7 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.692e-05/0.5681, allocations: 13.83 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.5683, allocations: 20.62 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.5696, allocations: 246.2 kB / 380.5 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.5697, allocations: 3.938 kB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.5698, allocations: 12.39 kB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.5699, allocations: 1.469 kB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008657/0.5708, allocations: 143.6 kB / 380.7 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00308/0.5739, allocations: 0.7397 MB / 381.4 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.5751, allocations: 199.2 kB / 381.6 MB, free: 40.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.5752, allocations: 1.094 kB / 381.6 MB, free: 40.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.5766, allocations: 389.9 kB / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 6.031e-06/0.5766, allocations: 0 / 382 MB, free: 39.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.004638/0.5813, allocations: 1.245 MB / 383.3 MB, free: 38.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001882/0.5816, allocations: 281.3 kB / 383.5 MB, free: 38.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003909/0.5855, allocations: 0.9516 MB / 384.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000256/0.5858, allocations: 38.64 kB / 384.5 MB, free: 38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.586, allocations: 183.4 kB / 384.7 MB, free: 37.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.5863, allocations: 63.19 kB / 384.8 MB, free: 37.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.212e-05/0.5864, allocations: 13.77 kB / 384.8 MB, free: 37.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5865, allocations: 317.7 kB / 385.1 MB, free: 37.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007566/0.5873, allocations: 125.4 kB / 385.2 MB, free: 37.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008141/0.5881, allocations: 165.9 kB / 385.4 MB, free: 37.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008853/0.589, allocations: 342.2 kB / 385.7 MB, free: 36.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.5891, allocations: 0 / 385.7 MB, free: 36.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.002783/0.5919, allocations: 0.7416 MB / 386.4 MB, free: 36.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002348/0.5922, allocations: 242.5 kB / 386.7 MB, free: 36.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5922, allocations: 0 / 386.7 MB, free: 36.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.288e-05/0.5923, allocations: 4.094 kB / 386.7 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.997e-05/0.5924, allocations: 19.92 kB / 386.7 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.5924, allocations: 11.94 kB / 386.7 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.5937, allocations: 23.98 kB / 386.7 MB, free: 36.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003272/0.5941, allocations: 117 kB / 386.8 MB, free: 35.89 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,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,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,$PRE.bUF3S1.inertialDelaySensitive.x,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.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00175/0.5959, allocations: 0.6046 MB / 387.5 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003514/0.5962, allocations: 79.06 kB / 387.5 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006302/0.5969, allocations: 130.9 kB / 387.7 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.5969, allocations: 4 kB / 387.7 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.597, allocations: 3.938 kB / 387.7 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.597, allocations: 11.94 kB / 387.7 MB, free: 35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004842/0.6019, allocations: 1.417 MB / 389.1 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.6019, allocations: 0 / 389.1 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.176e-05/0.602, allocations: 4 kB / 389.1 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.401e-05/0.602, allocations: 7.984 kB / 389.1 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.6022, allocations: 31.98 kB / 389.1 MB, free: 33.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.247e-06/0.6022, allocations: 3.953 kB / 389.1 MB, free: 33.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.6023, allocations: 3.938 kB / 389.1 MB, free: 33.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003157/0.6054, allocations: 0.957 MB / 390.1 MB, free: 32.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/0.6073, allocations: 415.8 kB / 390.5 MB, free: 31.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/0.6077, allocations: 20 kB / 390.5 MB, free: 31.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008491/0.6086, allocations: 31.97 kB / 390.6 MB, free: 31.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/0.609, allocations: 59.89 kB / 390.6 MB, free: 31.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003113/0.6094, allocations: 111.9 kB / 390.7 MB, free: 31.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002763/0.6122, allocations: 0.6938 MB / 391.4 MB, free: 31.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.683e-06/0.6122, allocations: 0 / 391.4 MB, free: 31.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001279/0.6135, allocations: 99.84 kB / 391.5 MB, free: 30.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004139/0.614, allocations: 147.2 kB / 391.7 MB, free: 30.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.6164, allocations: 0.8935 MB / 392.6 MB, free: 29.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/0.6165, allocations: 0 / 392.6 MB, free: 29.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.618, allocations: 0.7491 MB / 393.3 MB, free: 28.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/0.6207, allocations: 226.9 kB / 393.5 MB, free: 28.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005671/0.6265, allocations: 1.512 MB / 395 MB, free: 27.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.6278, allocations: 0.9635 MB / 396 MB, free: 26.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.6282, allocations: 51.34 kB / 396.1 MB, free: 26.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6283, allocations: 0 / 396.1 MB, free: 26.18 MB / 298.7 MB Notification: Performance of Templates: time 0.01803/0.6463, allocations: 5.254 MB / 401.3 MB, free: 20.9 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches