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/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_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_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.001105/0.001106, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.0009148/0.0009146, allocations: 101 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008714/0.0008716, allocations: 39.94 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.209, allocations: 46.62 MB / 373.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002661/0.2117, allocations: 1.859 MB / 375.7 MB, free: 44.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.2133, allocations: 1.038 MB / 376.7 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.2134, allocations: 0 / 376.7 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.2136, allocations: 19.31 kB / 376.7 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.124e-05/0.2137, allocations: 30.94 kB / 376.8 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.2139, allocations: 86.11 kB / 376.8 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000215/0.2141, allocations: 254.3 kB / 377.1 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.2143, allocations: 45.45 kB / 377.1 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006118/0.2149, allocations: 0.7199 MB / 377.9 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.215, allocations: 152.3 kB / 378 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.293e-05/0.2151, allocations: 14.28 kB / 378 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.454e-05/0.2152, allocations: 9.406 kB / 378 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.2153, allocations: 135.7 kB / 378.2 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.2155, allocations: 226.7 kB / 378.4 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.2159, allocations: 0.722 MB / 379.1 MB, free: 42.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2159, allocations: 1.156 kB / 379.1 MB, free: 42.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.2159, allocations: 0 / 379.1 MB, free: 42.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.2159, allocations: 0 / 379.1 MB, free: 42.1 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.0008555/0.2168, allocations: 1.178 MB / 380.3 MB, free: 41.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2168, allocations: 10.5 kB / 380.3 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.707e-05/0.2169, allocations: 77.97 kB / 380.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.2173, allocations: 382.3 kB / 380.7 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.2173, allocations: 15.19 kB / 380.8 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.2174, allocations: 24.23 kB / 380.8 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.2178, allocations: 247.2 kB / 381 MB, free: 40.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.2178, allocations: 0 / 381 MB, free: 40.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/0.2179, allocations: 10.56 kB / 381 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2179, allocations: 2.844 kB / 381 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002549/0.2181, allocations: 138.4 kB / 381.2 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009546/0.2191, allocations: 0.7402 MB / 381.9 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.2194, allocations: 213.6 kB / 382.1 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.2197, allocations: 172.9 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.2197, allocations: 1.25 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.2201, allocations: 390.2 kB / 382.7 MB, free: 39.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.2202, allocations: 0 / 382.7 MB, free: 39.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001275/0.2214, allocations: 0.9232 MB / 383.6 MB, free: 38.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.2215, allocations: 289.7 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.2225, allocations: 0.9457 MB / 384.8 MB, free: 37.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.2226, allocations: 37.61 kB / 384.9 MB, free: 37.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.319e-05/0.2226, allocations: 127.4 kB / 385 MB, free: 37.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.2227, allocations: 66.19 kB / 385 MB, free: 37.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.223, allocations: 161.8 kB / 385.2 MB, free: 37.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.259e-05/0.223, allocations: 337.8 kB / 385.5 MB, free: 37.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.2233, allocations: 124.9 kB / 385.7 MB, free: 37.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.2235, allocations: 167.9 kB / 385.8 MB, free: 37.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004365/0.224, allocations: 0.6996 MB / 386.5 MB, free: 36.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.224, allocations: 7.875 kB / 386.5 MB, free: 36.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000745/0.2247, allocations: 0.7564 MB / 387.3 MB, free: 35.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.494e-05/0.2248, allocations: 249.6 kB / 387.5 MB, free: 35.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2248, allocations: 0 / 387.5 MB, free: 35.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2248, allocations: 0 / 387.5 MB, free: 35.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.108e-05/0.2249, allocations: 11.98 kB / 387.5 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2249, allocations: 3.938 kB / 387.5 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.2251, allocations: 27.89 kB / 387.6 MB, free: 35.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.554e-05/0.2252, allocations: 109 kB / 387.7 MB, free: 35.01 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.0003966/0.2256, allocations: 0.6169 MB / 388.3 MB, free: 34.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.2257, allocations: 75.16 kB / 388.4 MB, free: 34.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.2259, allocations: 130.9 kB / 388.5 MB, free: 34.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2259, allocations: 0 / 388.5 MB, free: 34.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2259, allocations: 0 / 388.5 MB, free: 34.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2259, allocations: 7.969 kB / 388.5 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.2272, allocations: 1.437 MB / 389.9 MB, free: 32.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2272, allocations: 8 kB / 390 MB, free: 32.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/0.2273, allocations: 4 kB / 390 MB, free: 32.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2273, allocations: 0 / 390 MB, free: 32.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.2273, allocations: 31.97 kB / 390 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.2273, allocations: 0 / 390 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2273, allocations: 4 kB / 390 MB, free: 32.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.2286, allocations: 1.763 MB / 391.8 MB, free: 30.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004713/0.2291, allocations: 415.8 kB / 392.2 MB, free: 30.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.812e-05/0.2292, allocations: 27.92 kB / 392.2 MB, free: 30.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.2294, allocations: 27.98 kB / 392.2 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.2295, allocations: 51.94 kB / 392.3 MB, free: 30.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.297e-05/0.2296, allocations: 115.8 kB / 392.4 MB, free: 30.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006489/0.2303, allocations: 0.6821 MB / 393.1 MB, free: 29.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2303, allocations: 0 / 393.1 MB, free: 29.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004187/0.2307, allocations: 95.94 kB / 393.2 MB, free: 29.24 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.0001688/0.2309, allocations: 147.2 kB / 393.3 MB, free: 29.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006788/0.2315, allocations: 0.8857 MB / 394.2 MB, free: 28.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2316, allocations: 0 / 394.2 MB, free: 28.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.232, allocations: 0.7452 MB / 394.9 MB, free: 27.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009296/0.2329, allocations: 255.9 kB / 395.2 MB, free: 27.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.2347, allocations: 1.703 MB / 396.9 MB, free: 25.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.2351, allocations: 0.9557 MB / 397.8 MB, free: 24.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001839/0.2353, allocations: 89.34 kB / 397.9 MB, free: 24.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/0.2354, allocations: 43.36 kB / 398 MB, free: 24.16 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.2354, allocations: 4 kB / 398 MB, free: 24.16 MB / 298.7 MB Notification: Performance of Templates: time 0.009709/0.2451, allocations: 9.177 MB / 407.1 MB, free: 14.98 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches