Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001194, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007923/0.0007925, allocations: 95.55 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002441/0.0002441, allocations: 15.98 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2129, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.001318/0.2142, allocations: 1.478 MB / 409 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2157, allocations: 0.918 MB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.506e-05/0.2157, allocations: 7.938 kB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.2159, allocations: 13.47 kB / 409.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.189e-05/0.2159, allocations: 31.78 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.2162, allocations: 77.81 kB / 410 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00018/0.2164, allocations: 227.4 kB / 410.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.2165, allocations: 47.66 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005152/0.217, allocations: 0.6364 MB / 410.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.2172, allocations: 155.6 kB / 411.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.637e-05/0.2173, allocations: 8 kB / 411.1 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.071e-05/0.2173, allocations: 8.844 kB / 411.1 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.302e-05/0.2174, allocations: 135.5 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.483e-05/0.2175, allocations: 126.1 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.2178, allocations: 0.5924 MB / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.2178, allocations: 3.406 kB / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2178, allocations: 0 / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2178, allocations: 0 / 411.9 MB, free: 23.38 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.0006909/0.2185, allocations: 1.041 MB / 413 MB, free: 22.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.2186, allocations: 8.031 kB / 413 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.727e-05/0.2187, allocations: 75.06 kB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.219, allocations: 359.7 kB / 413.4 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.219, allocations: 20.14 kB / 413.4 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.2191, allocations: 25.84 kB / 413.5 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004084/0.2195, allocations: 247.2 kB / 413.7 MB, free: 21.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2195, allocations: 0 / 413.7 MB, free: 21.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.2195, allocations: 12 kB / 413.7 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.2195, allocations: 8 kB / 413.7 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002367/0.2198, allocations: 132.6 kB / 413.8 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008089/0.2206, allocations: 0.7354 MB / 414.6 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.2209, allocations: 202.4 kB / 414.8 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.2212, allocations: 176.8 kB / 415 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.2212, allocations: 7.984 kB / 415 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004164/0.2216, allocations: 379.6 kB / 415.3 MB, free: 19.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.2216, allocations: 4 kB / 415.3 MB, free: 19.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001101/0.2227, allocations: 0.9295 MB / 416.3 MB, free: 18.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.2228, allocations: 285 kB / 416.5 MB, free: 18.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008956/0.2237, allocations: 0.9568 MB / 417.5 MB, free: 17.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.2238, allocations: 37.69 kB / 417.5 MB, free: 17.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.491e-05/0.2238, allocations: 126 kB / 417.7 MB, free: 17.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.2239, allocations: 67.19 kB / 417.7 MB, free: 17.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.2239, allocations: 8 kB / 417.7 MB, free: 17.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.828e-05/0.224, allocations: 334.8 kB / 418.1 MB, free: 16.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.2242, allocations: 124.2 kB / 418.2 MB, free: 16.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.2244, allocations: 164.8 kB / 418.3 MB, free: 16.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.2246, allocations: 341.6 kB / 418.7 MB, free: 16.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2247, allocations: 0 / 418.7 MB, free: 16.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007923/0.2255, allocations: 0.7564 MB / 419.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/0.2255, allocations: 253.7 kB / 419.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2256, allocations: 3.938 kB / 419.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.2256, allocations: 0 / 419.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.239e-05/0.2256, allocations: 8 kB / 419.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.2256, allocations: 0 / 419.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.2259, allocations: 31.94 kB / 419.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-05/0.226, allocations: 108.1 kB / 419.8 MB, free: 14.93 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.0004385/0.2265, allocations: 0.6162 MB / 420.4 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.978e-05/0.2265, allocations: 79.06 kB / 420.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.2267, allocations: 130.9 kB / 420.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2267, allocations: 4 kB / 420.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2267, allocations: 0 / 420.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2267, allocations: 0 / 420.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.228, allocations: 1.429 MB / 422.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2281, allocations: 0 / 422.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.376e-05/0.2281, allocations: 8 kB / 422.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.2281, allocations: 0 / 422.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.2281, allocations: 27.98 kB / 422.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2281, allocations: 0 / 422.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2281, allocations: 11.89 kB / 422.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008899/0.229, allocations: 0.961 MB / 423.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004454/0.2295, allocations: 423.8 kB / 423.5 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.778e-05/0.2296, allocations: 20 kB / 423.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.2298, allocations: 27.98 kB / 423.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.23, allocations: 59.92 kB / 423.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.2301, allocations: 111.9 kB / 423.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006769/0.2307, allocations: 0.6899 MB / 424.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2307, allocations: 0 / 424.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003448/0.2311, allocations: 95.94 kB / 424.5 MB, free: 10 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.0001488/0.2313, allocations: 147.2 kB / 424.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007075/0.232, allocations: 0.8893 MB / 425.5 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.232, allocations: 0 / 425.5 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004145/0.2324, allocations: 0.7491 MB / 426.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009449/0.2334, allocations: 246.3 kB / 426.5 MB, free: 7.777 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.235, allocations: 1.505 MB / 428 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.2354, allocations: 0.9441 MB / 429 MB, free: 5.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.2355, allocations: 51.34 kB / 429 MB, free: 5.219 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2355, allocations: 0 / 429 MB, free: 5.219 MB / 298.7 MB Notification: Performance of Templates: time 0.005691/0.2412, allocations: 5.363 MB / 434.4 MB, free: 15.84 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches