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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 103.8 kB / 17.63 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 206.4 kB / 18.58 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 60.36 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1334, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003851/0.1372, allocations: 1.825 MB / 359.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.1394, allocations: 0.9822 MB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.1395, allocations: 0 / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.1397, allocations: 23.73 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.1398, allocations: 39.64 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003789/0.1402, allocations: 91.83 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005351/0.1407, allocations: 319.4 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.141, allocations: 61.62 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008636/0.1418, allocations: 0.7097 MB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.1421, allocations: 151.4 kB / 361.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.696e-05/0.1422, allocations: 20 kB / 361.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.392e-05/0.1423, allocations: 20 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1424, allocations: 139.4 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.1427, allocations: 250.1 kB / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006456/0.1433, allocations: 0.7398 MB / 362.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1433, allocations: 0 / 362.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1433, allocations: 0 / 362.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.1434, allocations: 0 / 362.9 MB, free: 8.633 MB / 302.1 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.001348/0.1447, allocations: 1.165 MB / 364.1 MB, free: 7.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1448, allocations: 12.03 kB / 364.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.089e-05/0.1448, allocations: 46.73 kB / 364.1 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.145, allocations: 76.09 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.1454, allocations: 404.1 kB / 364.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.1454, allocations: 12.56 kB / 364.6 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.1455, allocations: 24.12 kB / 364.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.146, allocations: 249.6 kB / 364.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.146, allocations: 0 / 364.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.1461, allocations: 15.94 kB / 364.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1461, allocations: 4 kB / 364.9 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.1464, allocations: 132.2 kB / 365 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.1475, allocations: 0.7387 MB / 365.8 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.1479, allocations: 206.4 kB / 366 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.1482, allocations: 172.8 kB / 366.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.1482, allocations: 8 kB / 366.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.1488, allocations: 381.9 kB / 366.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.883e-06/0.1488, allocations: 0 / 366.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001446/0.1503, allocations: 0.9278 MB / 367.5 MB, free: 3.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.1504, allocations: 285 kB / 367.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.1516, allocations: 0.9491 MB / 368.7 MB, free: 2.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.1517, allocations: 41.7 kB / 368.7 MB, free: 2.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.067e-05/0.1518, allocations: 122 kB / 368.8 MB, free: 2.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.004e-05/0.1519, allocations: 67.23 kB / 368.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.1521, allocations: 161 kB / 369.1 MB, free: 2.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1522, allocations: 338.8 kB / 369.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/0.1525, allocations: 120.2 kB / 369.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.1528, allocations: 168.7 kB / 369.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.1535, allocations: 0.7058 MB / 370.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1535, allocations: 0 / 370.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1737/0.3273, allocations: 0.7491 MB / 371.1 MB, free: 20.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000141/0.3274, allocations: 247.3 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3275, allocations: 1.781 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.3275, allocations: 3.719 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.333e-05/0.3275, allocations: 10.8 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.3275, allocations: 2.453 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.3279, allocations: 29.52 kB / 371.4 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.328, allocations: 112.9 kB / 371.5 MB, free: 20.05 MB / 302.1 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.0006636/0.3287, allocations: 0.6199 MB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-05/0.3288, allocations: 77.28 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.329, allocations: 123.3 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.329, allocations: 4.844 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.329, allocations: 0 / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.329, allocations: 0.6562 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.3308, allocations: 1.432 MB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3308, allocations: 1.578 kB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.586e-05/0.3308, allocations: 5.016 kB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3308, allocations: 1.594 kB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.482e-05/0.3309, allocations: 29.05 kB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3309, allocations: 6.5 kB / 373.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3309, allocations: 0 / 373.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.3321, allocations: 0.9655 MB / 374.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.3326, allocations: 418.8 kB / 375.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.3327, allocations: 22.08 kB / 375.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.333, allocations: 28.45 kB / 375.3 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.3331, allocations: 55.42 kB / 375.3 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.3332, allocations: 111 kB / 375.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000889/0.3341, allocations: 0.6888 MB / 376.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3342, allocations: 0 / 376.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.3346, allocations: 95.94 kB / 376.2 MB, free: 17.93 MB / 302.1 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.001411/0.336, allocations: 1.549 MB / 377.8 MB, free: 16.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009126/0.3369, allocations: 0.8913 MB / 378.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3369, allocations: 0 / 378.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005151/0.3374, allocations: 0.7543 MB / 379.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.3386, allocations: 283.4 kB / 379.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006282/0.3449, allocations: 4.597 MB / 384.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.3454, allocations: 0.9483 MB / 385.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.3457, allocations: 93.91 kB / 385.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.3458, allocations: 88.16 kB / 385.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3458, allocations: 0 / 385.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.3766, allocations: 11.66 MB / 397.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.642/9.019, allocations: 19.84 kB / 397.1 MB, free: 6.406 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches