Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Digital.Examples.WiredX") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 199.8 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.213/1.213, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008436/0.0008436, allocations: 89.2 kB / 286.3 MB, free: 5.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.184e-05/1.225e-05, allocations: 4 kB / 343.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.08823, allocations: 51.47 MB / 394.6 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.241/0.3293, allocations: 83.71 MB / 478.3 MB, free: 9.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.3295, allocations: 65.22 kB / 478.4 MB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.08203/0.4116, allocations: 42.76 MB / 0.5089 GB, free: 4.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.4116, allocations: 8 kB / 0.5089 GB, free: 4.773 MB / 378.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.001142/0.4128, allocations: 0.9456 MB / 0.5098 GB, free: 3.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.4128, allocations: 8.031 kB / 0.5099 GB, free: 3.723 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.4131, allocations: 71.16 kB / 0.5099 GB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006496/0.4137, allocations: 375.9 kB / 0.5103 GB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.4138, allocations: 16 kB / 0.5103 GB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.747e-05/0.4138, allocations: 18.25 kB / 0.5103 GB, free: 3.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003244/0.4142, allocations: 144.3 kB / 0.5105 GB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.4147, allocations: 271 kB / 0.5107 GB, free: 2.801 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4147, allocations: 4 kB / 0.5107 GB, free: 2.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.4148, allocations: 7.984 kB / 0.5107 GB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.4148, allocations: 7.938 kB / 0.5107 GB, free: 2.781 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.4162, allocations: 0.759 MB / 0.5115 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.4166, allocations: 210.4 kB / 0.5117 GB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.4169, allocations: 176.8 kB / 0.5118 GB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.4169, allocations: 4 kB / 0.5118 GB, free: 1.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.4174, allocations: 389.9 kB / 0.5122 GB, free: 1.172 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.775e-06/0.4174, allocations: 0 / 0.5122 GB, free: 1.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007815/0.4182, allocations: 447.6 kB / 0.5126 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.4183, allocations: 281 kB / 0.5129 GB, free: 404 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.4194, allocations: 0.7966 MB / 0.5137 GB, free: 15.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.157e-05/0.4195, allocations: 33.7 kB / 0.5137 GB, free: 15.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.4196, allocations: 114 kB / 0.5138 GB, free: 15.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.448e-05/0.4197, allocations: 59.27 kB / 0.5139 GB, free: 15.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.4197, allocations: 12 kB / 0.5139 GB, free: 15.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4199, allocations: 330.8 kB / 0.5142 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.4201, allocations: 132.2 kB / 0.5143 GB, free: 14.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.4203, allocations: 154.2 kB / 0.5145 GB, free: 14.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.4206, allocations: 123.8 kB / 0.5146 GB, free: 14.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4206, allocations: 0 / 0.5146 GB, free: 14.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007196/0.4213, allocations: 418.6 kB / 0.515 GB, free: 14.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.4213, allocations: 11.94 kB / 0.515 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.4213, allocations: 0 / 0.515 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.4214, allocations: 0 / 0.515 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.923e-05/0.4214, allocations: 4 kB / 0.515 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.4214, allocations: 7.984 kB / 0.515 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002856/0.4217, allocations: 31.89 kB / 0.5151 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002438/0.422, allocations: 267.8 kB / 0.5153 GB, free: 13.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,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,$PRE.bUF3S1.inertialDelaySensitive.y,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 () * 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.0003165/0.4223, allocations: 378.4 kB / 0.5157 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.4224, allocations: 79.06 kB / 0.5157 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.4227, allocations: 122.9 kB / 0.5159 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4227, allocations: 4 kB / 0.5159 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4227, allocations: 0 / 0.5159 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4227, allocations: 0 / 0.5159 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.4241, allocations: 1.013 MB / 0.5169 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4241, allocations: 0 / 0.5169 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.023e-05/0.4241, allocations: 11.92 kB / 0.5169 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4241, allocations: 0 / 0.5169 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.191e-05/0.4242, allocations: 43.97 kB / 0.5169 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.4242, allocations: 0 / 0.5169 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4242, allocations: 3.906 kB / 0.5169 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008166/0.425, allocations: 0.5688 MB / 0.5175 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007062/0.4258, allocations: 451.7 kB / 0.5179 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.4259, allocations: 20 kB / 0.5179 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.4262, allocations: 23.98 kB / 0.5179 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.4265, allocations: 75.89 kB / 0.518 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002599/0.4267, allocations: 267.5 kB / 0.5183 GB, free: 10.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008612/0.4276, allocations: 0.6509 MB / 0.5189 GB, free: 10.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004501/0.4281, allocations: 81.5 kB / 0.519 GB, free: 10 MB / 394.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]) * 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.0002174/0.4283, allocations: 149.3 kB / 0.5191 GB, free: 9.852 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007612/0.429, allocations: 0.5627 MB / 0.5197 GB, free: 9.242 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4291, allocations: 0 / 0.5197 GB, free: 9.242 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.4296, allocations: 0.5445 MB / 0.5202 GB, free: 8.648 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009331/0.4305, allocations: 216.8 kB / 0.5204 GB, free: 8.441 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.4324, allocations: 1.05 MB / 0.5214 GB, free: 7.352 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008656/0.4333, allocations: 1.045 MB / 0.5225 GB, free: 6.281 MB / 394.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4333, allocations: 0 / 0.5225 GB, free: 6.281 MB / 394.7 MB Notification: Performance of Templates: time 0.01845/0.4517, allocations: 11.9 MB / 0.5341 GB, free: 10.23 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches