Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 51.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1078, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003085/0.1109, allocations: 1.604 MB / 419.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000804/0.1117, allocations: 434.9 kB / 419.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.959e-05/0.1118, allocations: 0 / 419.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.97e-05/0.1118, allocations: 11.92 kB / 419.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.099e-05/0.1119, allocations: 7.875 kB / 419.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.1121, allocations: 23.91 kB / 419.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001316/0.1122, allocations: 59.78 kB / 419.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.1124, allocations: 35.97 kB / 419.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1125, allocations: 31.8 kB / 420 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.823e-05/0.1126, allocations: 31.84 kB / 420 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.1126, allocations: 4 kB / 420 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.57e-05/0.1126, allocations: 8 kB / 420 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.1127, allocations: 11.98 kB / 420 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.671e-05/0.1127, allocations: 31.8 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.1128, allocations: 67.66 kB / 420.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1128, allocations: 0 / 420.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1129, allocations: 0 / 420.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.1129, allocations: 4 kB / 420.1 MB, free: 10.27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005742/0.1134, allocations: 387.1 kB / 420.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1135, allocations: 8.031 kB / 420.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.401e-05/0.1135, allocations: 42.67 kB / 420.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.414e-05/0.1135, allocations: 8.891 kB / 420.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.1137, allocations: 172.3 kB / 420.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.1137, allocations: 12.12 kB / 420.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.1137, allocations: 4 kB / 420.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.114, allocations: 121.9 kB / 420.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.114, allocations: 0 / 420.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.114, allocations: 4 kB / 420.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.114, allocations: 3.984 kB / 420.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.1142, allocations: 55.91 kB / 420.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/0.1149, allocations: 0.6381 MB / 421.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.1151, allocations: 124.9 kB / 421.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.1152, allocations: 60.39 kB / 421.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.1153, allocations: 0 / 421.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1153, allocations: 38.5 kB / 421.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.1153, allocations: 0 / 421.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004778/0.1158, allocations: 129.6 kB / 421.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.84e-05/0.1159, allocations: 158.2 kB / 422.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.116, allocations: 121.8 kB / 422.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.116, allocations: 25.7 kB / 422.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.578e-05/0.1161, allocations: 96.09 kB / 422.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.1161, allocations: 24.22 kB / 422.3 MB, free: 7.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.132e-05/0.1161, allocations: 21.72 kB / 422.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1163, allocations: 322.8 kB / 422.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.869e-05/0.1164, allocations: 23.92 kB / 422.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.1165, allocations: 48.28 kB / 422.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.1167, allocations: 84.2 kB / 422.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1167, allocations: 0 / 422.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002337/0.1169, allocations: 97.53 kB / 422.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.1169, allocations: 7.984 kB / 422.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1169, allocations: 0 / 422.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1169, allocations: 7.938 kB / 422.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.117, allocations: 8 kB / 422.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.117, allocations: 0 / 422.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.1171, allocations: 19.94 kB / 422.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1171, allocations: 4.156 kB / 422.9 MB, free: 7.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001024/0.1172, allocations: 117.8 kB / 423.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.856e-05/0.1173, allocations: 4 kB / 423.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.1173, allocations: 15.45 kB / 423.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1173, allocations: 4 kB / 423.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1174, allocations: 0 / 423.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.1174, allocations: 0 / 423.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003995/0.1178, allocations: 189.5 kB / 423.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1178, allocations: 0 / 423.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.405e-05/0.1178, allocations: 19.98 kB / 423.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1178, allocations: 0 / 423.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1178, allocations: 7.938 kB / 423.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1178, allocations: 0 / 423.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1178, allocations: 0 / 423.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004192/0.1183, allocations: 492.6 kB / 423.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.1183, allocations: 92.88 kB / 423.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.1183, allocations: 15.92 kB / 423.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.1186, allocations: 4.188 kB / 423.9 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/0.1186, allocations: 7.984 kB / 423.9 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1186, allocations: 8 kB / 423.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.213e-05/0.1187, allocations: 99.27 kB / 424 MB, free: 5.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1187, allocations: 0 / 424 MB, free: 5.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.1191, allocations: 8 kB / 424 MB, free: 5.906 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0007723/0.1198, allocations: 1.018 MB / 425 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.1201, allocations: 63.89 kB / 425.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1201, allocations: 320 / 425.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.1202, allocations: 31.92 kB / 425.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.1207, allocations: 10.25 kB / 425.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007119/0.1214, allocations: 236.4 kB / 425.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1217, allocations: 0.6961 MB / 426.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.46e-05/0.1218, allocations: 7.984 kB / 426.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.075e-05/0.1218, allocations: 23.42 kB / 426.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1218, allocations: 0 / 426.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.1469, allocations: 1.655 MB / 427.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.174/8.321, allocations: 12.64 kB / 427.8 MB, free: 2.098 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039976 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable controlBus.realSignal1 in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.realSignal1 from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.integerSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.integerSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.booleanSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.booleanSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.subControlBus.myRealSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.subControlBus.myRealSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! Error: Could not read variable controlBus.subControlBus.myBooleanSignal in file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv. Warning: Get data of variable controlBus.subControlBus.myBooleanSignal from file Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.94598221918568]