Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001184/0.001184, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008738/0.0008738, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8655/0.8655, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 3.938 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.231e-05, allocations: 3.125 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00242/0.002443, allocations: 1.984 MB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.003945, allocations: 1.223 MB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.004057, allocations: 8 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006566/0.004714, allocations: 314.9 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004557/0.005169, allocations: 259 kB / 328.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.005619, allocations: 230.8 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.005993, allocations: 370.9 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.006123, allocations: 44.91 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.006318, allocations: 195.5 kB / 329.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003734/0.006691, allocations: 135.6 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.006717, allocations: 20 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.006863, allocations: 87.81 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.569e-05/0.006949, allocations: 95.67 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.944e-05/0.007018, allocations: 75.7 kB / 329.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.007342, allocations: 362.8 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.007344, allocations: 0 / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.007345, allocations: 0 / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.00735, allocations: 4 kB / 329.9 MB, free: 10.49 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000687/0.008037, allocations: 0.5972 MB / 330.5 MB, free: 9.852 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.00808, allocations: 15.98 kB / 330.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.316e-05/0.008113, allocations: 38.73 kB / 330.5 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/0.008169, allocations: 36.7 kB / 330.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.008472, allocations: 280.1 kB / 330.8 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.008489, allocations: 8.375 kB / 330.8 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.008505, allocations: 12.38 kB / 330.8 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001763/0.008681, allocations: 123 kB / 331 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.008688, allocations: 4.188 kB / 331 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.008701, allocations: 8.125 kB / 331 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.008708, allocations: 4 kB / 331 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.008817, allocations: 71.89 kB / 331.1 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.009303, allocations: 447.4 kB / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.009507, allocations: 126.8 kB / 331.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.207e-05/0.00958, allocations: 52.83 kB / 331.7 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.009601, allocations: 7.984 kB / 331.7 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.009768, allocations: 119.3 kB / 331.8 MB, free: 8.418 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.009769, allocations: 0 / 331.8 MB, free: 8.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003473/0.01012, allocations: 229.3 kB / 332 MB, free: 8.188 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.01015, allocations: 51.41 kB / 332.1 MB, free: 8.125 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.01051, allocations: 461.5 kB / 332.5 MB, free: 7.668 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.01053, allocations: 33.7 kB / 332.5 MB, free: 7.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.01063, allocations: 172 kB / 332.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.01067, allocations: 55.61 kB / 332.8 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.01072, allocations: 41.7 kB / 332.8 MB, free: 7.355 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.01084, allocations: 346.7 kB / 333.2 MB, free: 7.008 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.702e-05/0.01092, allocations: 47.92 kB / 333.2 MB, free: 6.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.01103, allocations: 143.7 kB / 333.3 MB, free: 6.793 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.01117, allocations: 113.2 kB / 333.4 MB, free: 6.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.01117, allocations: 0 / 333.4 MB, free: 6.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001982/0.01137, allocations: 185.4 kB / 333.6 MB, free: 6.488 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.01138, allocations: 4 kB / 333.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.01139, allocations: 4 kB / 333.6 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.0114, allocations: 0 / 333.6 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.574e-05/0.01148, allocations: 27.98 kB / 333.7 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.01148, allocations: 3.938 kB / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.81e-05/0.01154, allocations: 19.88 kB / 333.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.01155, allocations: 8 kB / 333.7 MB, free: 6.422 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.000112/0.01166, allocations: 167.8 kB / 333.9 MB, free: 6.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.01169, allocations: 35.8 kB / 333.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002528/0.01194, allocations: 204.4 kB / 334.1 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.01195, allocations: 4 kB / 334.1 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01195, allocations: 0 / 334.1 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.01195, allocations: 3.938 kB / 334.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.01213, allocations: 260.5 kB / 334.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.01213, allocations: 0 / 334.4 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.684e-05/0.01216, allocations: 11.94 kB / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.01216, allocations: 4 kB / 334.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.01217, allocations: 7.984 kB / 334.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.01217, allocations: 0 / 334.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.01217, allocations: 8 kB / 334.4 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002048/0.01238, allocations: 223.7 kB / 334.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.994e-05/0.01241, allocations: 31.8 kB / 334.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.01243, allocations: 8 kB / 334.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.803e-05/0.01247, allocations: 4 kB / 334.6 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.01252, allocations: 23.84 kB / 334.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.01254, allocations: 8 kB / 334.7 MB, free: 5.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002619/0.0128, allocations: 339.1 kB / 335 MB, free: 5.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0128, allocations: 4 kB / 335 MB, free: 5.023 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002292/0.01303, allocations: 51.88 kB / 335.1 MB, free: 4.973 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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001171/0.0142, allocations: 1.092 MB / 336.2 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002026/0.0144, allocations: 127.8 kB / 336.3 MB, free: 3.879 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.0144, allocations: 0 / 336.3 MB, free: 3.879 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004678/0.01487, allocations: 62.59 kB / 336.3 MB, free: 3.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.01513, allocations: 84.27 kB / 336.4 MB, free: 3.742 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.01746, allocations: 2.921 MB / 339.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.01756, allocations: 170.2 kB / 339.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.688e-05/0.01765, allocations: 50.19 kB / 339.6 MB, free: 496 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.01776, allocations: 96.47 kB / 339.7 MB, free: 400 kB / 298.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01776, allocations: 7.938 kB / 339.7 MB, free: 392 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.0373, allocations: 8.297 MB / 348 MB, free: 8.125 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.022/7.06, allocations: 3.938 kB / 348 MB, free: 8.121 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199601 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Pre1.u in file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.81566827185452]