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.001278/0.001278, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 202.4 kB / 18.58 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002212, allocations: 60.31 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1209, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003757/0.1248, allocations: 1.821 MB / 359.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002808/0.1276, allocations: 0.9822 MB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.1278, allocations: 4 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.1281, allocations: 23.72 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.1284, allocations: 43.64 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005875/0.129, allocations: 95.83 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005224/0.1295, allocations: 315.3 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.1297, allocations: 57.64 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000916/0.1306, allocations: 0.7136 MB / 361.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.1309, allocations: 143.4 kB / 361.8 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.1311, allocations: 20 kB / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.246e-05/0.1311, allocations: 24 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001594/0.1313, allocations: 143.4 kB / 361.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.1316, allocations: 246.2 kB / 362.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008115/0.1324, allocations: 0.732 MB / 362.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.108e-05/0.1324, allocations: 4 kB / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1324, allocations: 0 / 362.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.295e-05/0.1325, allocations: 0 / 362.9 MB, free: 8.629 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.002564/0.135, allocations: 1.169 MB / 364.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.1351, allocations: 8.031 kB / 364.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.1352, allocations: 46.75 kB / 364.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.1354, allocations: 76.08 kB / 364.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.136, allocations: 396.1 kB / 364.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.136, allocations: 20.56 kB / 364.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.1361, allocations: 24.12 kB / 364.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.1367, allocations: 253.8 kB / 364.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1367, allocations: 0 / 364.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.1368, allocations: 15.98 kB / 364.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.1368, allocations: 7.875 kB / 364.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003595/0.1371, allocations: 136.2 kB / 365 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.1385, allocations: 0.7387 MB / 365.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.1389, allocations: 206.4 kB / 366 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.1392, allocations: 172.8 kB / 366.2 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.1392, allocations: 4 kB / 366.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006082/0.1398, allocations: 385.2 kB / 366.5 MB, free: 4.758 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.1399, allocations: 4 kB / 366.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001564/0.1414, allocations: 0.9213 MB / 367.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.1416, allocations: 285 kB / 367.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.143, allocations: 0.9491 MB / 368.7 MB, free: 2.477 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.117e-05/0.1431, allocations: 37.7 kB / 368.7 MB, free: 2.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1433, allocations: 130 kB / 368.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.463e-05/0.1434, allocations: 63.25 kB / 368.9 MB, free: 2.238 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.1436, allocations: 169 kB / 369.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1438, allocations: 334.8 kB / 369.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.1441, allocations: 124.2 kB / 369.5 MB, free: 1.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.1444, allocations: 164.7 kB / 369.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007743/0.1452, allocations: 0.7058 MB / 370.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1452, allocations: 0 / 370.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1925/0.3377, allocations: 0.7517 MB / 371.1 MB, free: 20.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.3378, allocations: 243.8 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3379, allocations: 0.7812 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.3379, allocations: 5.703 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.898e-05/0.3379, allocations: 9.156 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3379, allocations: 0.9375 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.3382, allocations: 28.95 kB / 371.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.3384, allocations: 113.1 kB / 371.5 MB, free: 20.09 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.000671/0.3391, allocations: 0.6183 MB / 372.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.3392, allocations: 77.56 kB / 372.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.3394, allocations: 128 kB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3394, allocations: 3.281 kB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3394, allocations: 0 / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3394, allocations: 0.75 kB / 372.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/0.3412, allocations: 1.428 MB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3412, allocations: 1 kB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.561e-05/0.3412, allocations: 4.359 kB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3412, allocations: 4.438 kB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.3413, allocations: 29.81 kB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.3413, allocations: 5.25 kB / 373.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3413, allocations: 0.6562 kB / 373.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.3424, allocations: 0.9628 MB / 374.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005825/0.343, allocations: 422.7 kB / 375.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.3432, allocations: 20.67 kB / 375.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.3434, allocations: 27 kB / 375.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.3436, allocations: 59.83 kB / 375.3 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.3437, allocations: 110.9 kB / 375.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009235/0.3446, allocations: 0.6922 MB / 376.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3446, allocations: 0 / 376.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004381/0.3451, allocations: 91.72 kB / 376.2 MB, free: 17.96 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.001528/0.3466, allocations: 1.551 MB / 377.8 MB, free: 16.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009267/0.3475, allocations: 0.8909 MB / 378.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3476, allocations: 0 / 378.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00048/0.348, allocations: 0.7515 MB / 379.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.3491, allocations: 269.5 kB / 379.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.3548, allocations: 4.601 MB / 384.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.3554, allocations: 0.9549 MB / 385.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000275/0.3557, allocations: 86.28 kB / 385.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.3558, allocations: 92.56 kB / 385.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3558, allocations: 0 / 385.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03201/0.3878, allocations: 11.66 MB / 397.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.938/8.326, allocations: 26.84 kB / 397.1 MB, free: 6.367 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 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.csv","/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